static void Main(string[] args) { Console.SetWindowPosition(0, 0); //game format settings int windowWidth = 140; //max 240 int windowHeight = 35; //max 63 int normalTextBorder = 25; int centeredTextBorder = 40; int textDisplayDelay = 5; bool enableDelay = false; //creating a gameobject containing all variables needed throughout the story Game currentGame = new Game(windowWidth, windowHeight, normalTextBorder, centeredTextBorder, textDisplayDelay, enableDelay); //creating scenarios Scenario01 sc01 = new Scenario01(currentGame); //01 Collapsing Dungeon Hallway Scenario00 sc00 = new Scenario00(currentGame); //00 Cell NameEntryScreen nameScreen = new NameEntryScreen(currentGame); //Namescreen MainScreen titleScreen = new MainScreen(currentGame); //MainScreen //setting the exits for each scenario sc00.SetExits(sc01); nameScreen.SetExits(sc00); titleScreen.SetExits(nameScreen); //Gamestart titleScreen.Display(); }
static void Main(string[] args) { MainScreen mainScreen = new MainScreen(); mainScreen.Display(); MyUserDictionary myUserDictionary = new MyUserDictionary(); myUserDictionary.Login(); Authenticate authenticate = new Authenticate(); authenticate.VerifyUser(); int menuoptions = 3; switch (menuoptions) { case 1: myUserDictionary.Login(); break; case 2: //here thing; break; case 3: //here thing exit method // Dispose(); break; } }