Ejemplo n.º 1
0
        public static void Draw(SpriteBatch spriteBatch)
        {
            switch (GameState)
            {
            case GameStates.Title:
                TitleScreenManager.Draw(spriteBatch);
                break;

            case GameStates.Menu:
                MenuManager.Draw(spriteBatch);
                break;

            case GameStates.Platform:
            case GameStates.RPG:
                LevelManager.Draw();
                break;
            }

            if (GamePaused)
            {
                MenuManager.Draw(spriteBatch);
            }
        }
Ejemplo n.º 2
0
        public static void Update()
        {
            switch (GameState)
            {
            case GameStates.Title:
                TitleScreenManager.Update();
                break;

            case GameStates.Menu:
                MenuManager.Update();
                break;

            case GameStates.Platform:
            case GameStates.RPG:
                IngameManager.Update();
                break;
            }

            if (GamePaused)
            {
                MenuManager.Update();
            }
        }