コード例 #1
0
ファイル: GameRoot.cs プロジェクト: mobamba1/Shoot-em-Up-Game
        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();
        }
コード例 #2
0
ファイル: GameRoot.cs プロジェクト: mobamba1/Shoot-em-Up-Game
        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();
        }