Esempio n. 1
0
        public void GameOver()
        {
            for (int i = 0; i < Entities.Count(); i++)
                Entities[i].Alive = false;

            for (int i = 0; i < Enemies.Count(); i++)
                Enemies[i].Alive = false;

            for (int i = 0; i < CharacterBullets.Count(); i++)
                CharacterBullets[i].Alive = false;

            for (int i = 0; i < EnemyBullet.Count(); i++)
                EnemyBullet[i].Alive = false;

            gameOverScreen = new GameOverScreen(this);
            gameState = GAMESTATE.END;

            level1 = null;
            level2 = null;
            level3 = null;
        }
Esempio n. 2
0
        public void LevelThree()
        {
            level3 = new GamePlayLevel3(this);
            gameState = GAMESTATE.LEVEL3;
            GameIndex = 3;

            levelSelectionScreen = null;

            Ammo = 60;
            TimeLimit = 120f;
            EnemyCount = 25;
            Health = 100;
        }
Esempio n. 3
0
        public void Congrats()
        {
            congratsScreen = new CongratsScreen(this);
            gameState = GAMESTATE.FINISH;

            level1 = null;
            level2 = null;
            level3 = null;
        }