コード例 #1
0
ファイル: Game1.cs プロジェクト: ma7modx/aliens-attack-game
 void LEVELS_ORGANIZATION_UPDATE()
 {
     if (Events.LevelsEnd == 0)
     {
         level1.UpdateEnimies();
     }
     else if (Events.LevelsEnd == 3)
     {
         level2.UpdateEnimies();
     }
     else if (Events.LevelsEnd == 2)
     {
         level3.UpdateEnimies();
     }
     else if (Events.LevelsEnd == 1)
     {
         level4.UpdateEnimies();
     }
     else if (Events.LevelsEnd == 4)
     {
         level5.UpdateEnimies();
     }
     else if (Events.LevelsEnd == 5)
     {
         level6.UpdateEnimies();
     }
     else if (Events.LevelsEnd == 7)
     {
         level7.UpdateEnimies();
     }
     else if (Events.LevelsEnd == 6)
     {
         LastLvl.UpdateEnimies(1);
     }
 }
コード例 #2
0
ファイル: Game1.cs プロジェクト: ma7modx/aliens-attack-game
 void LEVELS_ORGANIZATION_CREATION()
 {
     if (Events.health == 0)
     {
         GameOverTimer -= elapsed;
     }
     else if (Events.LevelsEnd == 0 && Levels.counter == 0)
     {
         LevelShowTimer = 10;
         level1.Createenemy();
         Events.health = 200;
     }
     else if (Events.LevelsEnd == 3 && Levels.counter == 3)
     {
         LevelShowTimer = 10;
         level2.Createenemy();
     }
     else if (Events.LevelsEnd == 2 && Levels.counter == 2)
     {
         LevelShowTimer = 10;
         level3.Createenemy();
     }
     else if (Events.LevelsEnd == 1 && Levels.counter == 1)
     {
         LevelShowTimer = 10;
         level4.Createenemy();
     }
     else if (Events.LevelsEnd == 4 && Levels.counter == 4)
     {
         LevelShowTimer = 10;
         level5.Createenemy();
     }
     else if (Events.LevelsEnd == 5 && Levels.counter == 5)
     {
         LevelShowTimer = 10;
         level6.Createenemy();
     }
     else if (Events.LevelsEnd == 7 && Levels.counter == 7)
     {
         LevelShowTimer = 10;
         level7.Createenemy();
     }
     else if (Events.LevelsEnd == 6 && Levels.counter == 6)
     {
         LevelShowTimer = 10;
         LastLvl.Createenemy(1);
     }
 }
コード例 #3
0
ファイル: Game1.cs プロジェクト: ma7modx/aliens-attack-game
        void LEVELS_ORGANIZATION_DRAW()
        {
            if (Events.LevelsEnd == 0)
            {
                checktime(1);
                level1.DrawEnimies();
            }

            else if (Events.LevelsEnd == 3)
            {
                checktime(2);
                level2.DrawEnimies();
            }
            else if (Events.LevelsEnd == 2)
            {
                checktime(3);
                level3.DrawEnimies();
            }
            else if (Events.LevelsEnd == 1)
            {
                checktime(4);
                level4.DrawEnimies();
            }
            else if (Events.LevelsEnd == 4)
            {
                checktime(5);
                level5.DrawEnimies();
            }
            else if (Events.LevelsEnd == 5)
            {
                checktime(6);
                level6.DrawEnimies();
            }
            else if (Events.LevelsEnd == 7)
            {
                checktime(7);
                level7.DrawEnimies();
            }
            else if (Events.LevelsEnd == 6)
            {
                checktime(8);
                LastLvl.DrawEnimies();
            }
        }