Example #1
0
        void UpdateLevelThreeComp(GameTime deltaTime)
        {
            if (Input.WasButtonPressed(Buttons.Back) || Input.WasKeyPressed(Keys.Escape))
            {
                this.Exit();
            }
            if (ScoreAndLives.Score > 1000)
            {
                _state = GameState.EndOfGame;
            }

            EntityManager.Update();
            EnemySpawner.Reset();
            WandererSpawn.Reset();
        }
Example #2
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();
        }
Example #3
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();
        }