Exemple #1
0
        public Game1()
            : base()
        {
            graphics = new GraphicsDeviceManager(this);
            content = new ContentManager(Services, "Content");

            graphics.PreferredBackBufferWidth = 900;
            graphics.PreferredBackBufferHeight = 460;

            IsMouseVisible = true;
            windowReturnInfo.windowTransition = false;
            gameWindowState = Game_Window_State.Launch;
            gameDrawState = Game_Draw_State.Launch;
        }
Exemple #2
0
        protected Window_Return_Info StateUpdate(GameTime gameTime)
        {
            switch (gameWindowState)
            {
                case Game_Window_State.Launch:
                    windowReturnInfo = launchManager.Update(gameTime, KeyPress, windowReturnInfo);
                    gameDrawState = Game_Draw_State.Launch;
                    break;

                case Game_Window_State.Game:
                    windowReturnInfo = gameManager.Update(gameTime, KeyPress, windowReturnInfo);
                    gameDrawState = Game_Draw_State.Game;
                    break;
            }
            return windowReturnInfo;
        }