コード例 #1
0
 private static void Main(string[] args)
 {
     Console.WriteLine("Welcome in the Game of Throne, please enter your Hero Name.\n");
     Console.Write("Name your Hero: ");
     HeroName = Convert.ToString(Console.ReadLine());
     //program.Start_Menu();
     GameOne.Set_Up_Data();
 }
コード例 #2
0
ファイル: GameSystem.cs プロジェクト: kaldhu/MyGameEngine
 static void Main()
 {
     //IGame m_Game = GameOne.Instance();
        // IGame m_Game = new GraphicsExampleGame();
     IGame m_Game = new GameOne();
     IGameCommand m_GameCommand = GameCommand.Instance(m_Game); ;
     m_GameCommand.LoadGame();
     m_GameCommand.GameLoop();
     #if DEBUG
     Console.WriteLine("Press any key to continue...");
     Console.ReadKey();
     #endif
 }
コード例 #3
0
ファイル: GameSystem.cs プロジェクト: kaldhu/MyGameEngine
        static void Main()
        {
            //IGame m_Game = GameOne.Instance();
            // IGame m_Game = new GraphicsExampleGame();
            IGame        m_Game        = new GameOne();
            IGameCommand m_GameCommand = GameCommand.Instance(m_Game);;

            m_GameCommand.LoadGame();
            m_GameCommand.GameLoop();
#if DEBUG
            Console.WriteLine("Press any key to continue...");
            Console.ReadKey();
#endif
        }
コード例 #4
0
        public static void Main_Menu()
        {
            var p = new TutorialFight();

            Console.WriteLine("Version: {0} | Version Details: {1}", versionNumber, versionDescription);
            Console.WriteLine("Quotes from the Past: '" + HeroQuote + "'\n");
            Console.WriteLine("Gold: {0} | Exp: {1}/{2}. Current Level: {3}.\n", GameOne.Money, GameOne.Experience, GameOne.ExperienceReqUired, GameOne.Level);
            Console.WriteLine("Story Mode   - 'S' -     Under Devlopment");
            Console.WriteLine("Quick Play   - 'Q' -     Accessable");
            Console.WriteLine("Shop         - 'B' -     Accessable");
            Console.WriteLine("Information  - 'I' -     Accessable");
            Console.WriteLine("Tutorial     - 'T' -     Accessable");
            Console.WriteLine("Stash        - 'Space' - Under Devlopment");
            if (Alive == false)
            {
                Console.WriteLine("Resurrection - 'R' -     Accessable");
            }
            Console.WriteLine("Settings     - 'U' -     Accessable");
            Console.WriteLine("Quit Game    - 'Tab' -   Accessable");
            ConsoleKeyInfo info = Console.ReadKey();

            switch (info.Key)
            {
            case ConsoleKey.U:     //Settings
                Console.Clear();
                Program.Settings();
                break;

            case ConsoleKey.T:     //Tutorial
                if (Alive == true)
                {
                    Console.Clear();
                    p.TutorialInformation();
                }
                else
                {
                    Console.Clear();
                    Pre_Main_Menu();
                }
                break;

            case ConsoleKey.Tab:     //Quit
                Console.Clear();
                break;

            case ConsoleKey.Q:     //Quick Play
                if (Alive == true)
                {
                    Console.Clear();
                    GameOne.GameStart();
                }
                else
                {
                    Console.Clear();
                    Pre_Main_Menu();
                }
                break;

            case ConsoleKey.B:     //Shop
                Console.Clear();
                StoreMain.Pre_Store_Screen();
                break;

            case ConsoleKey.I:     //Information
                Console.Clear();
                Program.Informations();
                break;

            case ConsoleKey.S:     //Story Mode
                Console.Clear();
                StoreMain.Pre_Store_Screen();
                break;

            case ConsoleKey.Spacebar:     //LootBox
                Console.Clear();
                Game.LootBox.Pre_LootBox_Screen();
                break;

            default:
                if (Alive == false && info.Key == ConsoleKey.R)
                {
                    Resurrection();
                }
                else
                {
                    Console.Clear();
                    Pre_Main_Menu();
                }
                break;
            }
        }