public static void ApplyPostStage() { SoundClass.Stop(Globals.SFXRocketInstance); SoundClass.Stop(Globals.SFXFloatInstance); if (Globals.EnterKeyPressed) { if (Globals.GameType == Enum.GameType.Arcade) { if (Globals.Landed) { FunctionsGame.ChangeStage(); } else if (Globals.Collided) { if (Globals.ShipsLeft > 0) { Globals.ShipsLeft--; FunctionsStage.InitializeStage(); } else { Globals.CurrentScene = new Scenes.SceneTitle(); } } } else if (Globals.GameType == Enum.GameType.OreColleting) { if (Globals.Landed) { if (!Globals.SelectedStage.SpriteRedOre.Visible && !Globals.SelectedStage.SpriteGreenOre.Visible && !Globals.SelectedStage.SpriteBlueOre.Visible) { Globals.OreCollected = true; FunctionsGame.RecordFeatures(Enum.RecordType.OreCollected); Globals.CurrentScene = new Scenes.SceneChooseStage(); } else { FunctionsStage.InitializeStage(); } } else { FunctionsStage.InitializeStage(); } } else { FunctionsStage.InitializeStage(); } } }
public static void ChangeStage() { if (Globals.CurrentStage > 10 && Globals.CurrentStage < 15) { Globals.CurrentStage++; FunctionsStage.InitializeStage(); } else if (Globals.CurrentStage > 20 && Globals.CurrentStage < 25) { Globals.CurrentStage++; FunctionsStage.InitializeStage(); } else if (Globals.CurrentStage > 30 && Globals.CurrentStage < 35) { Globals.CurrentStage++; FunctionsStage.InitializeStage(); } else if (Globals.CurrentStage > 40 && Globals.CurrentStage < 45) { Globals.CurrentStage++; FunctionsStage.InitializeStage(); } else if (Globals.CurrentStage > 50 && Globals.CurrentStage < 55) { Globals.CurrentStage++; FunctionsStage.InitializeStage(); } else if (Globals.CurrentStage > 60 && Globals.CurrentStage < 65) { Globals.CurrentStage++; FunctionsStage.InitializeStage(); } else { Globals.CurrentScene = new Scenes.SceneEnding(); } }