Skip to content

Instantly share code, notes, and snippets.

@MajorMojo
Created April 25, 2016 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MajorMojo/700936c02f1430de44b4559f0579917d to your computer and use it in GitHub Desktop.
Save MajorMojo/700936c02f1430de44b4559f0579917d to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Runtime.Remoting.Channels;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace TextAdventure
{
public enum State
{
intro,
contact1,
contact2,
contact3,
}
public class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Green;
var game = true;
while (game = true)
{
State myState = State.intro;
//first level
if (myState == State.intro)
{
level.Intro();
}
else
{
if (myState == State.contact1)
{
Console.WriteLine("Wroked");
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment