Пример #1
0
        public override void Initialize()
        {
            startScreen = new StartScreen((TankGame)Game, "Fonts/LargeFont");
            startScreen.SetData(GameState.START);
            currentState = GameState.START;

            base.Initialize();
        }
Пример #2
0
        public override void Initialize()
        {
            startScreen = new StartScreen((TankGame)Game, "Fonts/LargeFont");
            startScreen.SetData(GameState.START);
            currentState = GameState.START;

            base.Initialize();
        }
Пример #3
0
        static void Main()
        {
            //Console.BufferHeight = Console.WindowHeight = WorldRows;
            //Console.BufferWidth = Console.WindowWidth = WorldCols;
            //WindowsSettings.Initialize();
            StartScreen.Initialize();
            ConsoleKeyInfo pressedKey = Console.ReadKey(true);

            if (pressedKey.Key == ConsoleKey.Enter)
            {
                Console.Clear();

                //WindowsSettings.Initialize();
                IRenderer  renderer   = new ConsoleRenderer(WorldRows, WorldCols);
                IUserInput keyboard   = new KeyboardInput();
                Engine     gameEngine = new Engine(renderer, keyboard);
                Initialize(gameEngine);
                gameEngine.Run();
            }
        }