Esempio n. 1
0
        void UpdateLevelTwo(GameTime deltaTime)
        {
            // Respond to user actions in the game .
            if (Input.WasButtonPressed(Buttons.Back) || Input.WasKeyPressed(Keys.Escape))
            {
                this.Exit();
            }
            if (ScoreAndLives.Score > 300)
            {
                _state = GameState.LevelTwoComp;
            }

            EntityManager.Update();
            EnemySpawner.Update();
            WandererSpawn.Update();
        }
Esempio n. 2
0
        void UpdateLevelTwoComp(GameTime deltaTime)
        {
            // Respond to user actions in the game .
            if (Input.WasButtonPressed(Buttons.Back) || Input.WasKeyPressed(Keys.Escape))
            {
                this.Exit();
            }

            if (Keyboard.GetState().IsKeyDown(Keys.Enter))
            {
                _state = GameState.LevelThree;
            }


            EntityManager.Update();
            EnemySpawner.Update();
            WandererSpawn.Update();
        }