internal static void init() { LoadUserDataLocal(); contentManager = Game.Content as SmartContentManager; LoadSettings(); DataHandler.LoadCurrentTheme(); stateManager = new StateManager(); stateManager.AddGameState(GameState.MainMenu, MainMenuCont.GetInstance()); stateManager.AddGameState(GameState.OnStage, StageCont.GetInstance()); initInput(); stateManager.SwitchTo(GameState.MainMenu); Game.OnUpdate += Update; Game.OnDraw += Draw; initd = true; }
private StageCont() { //TODO: init world = World.GetInstance(); instance = this; }
internal static void PlayerWon() { ((StageCont)StageCont.GetInstance()).ShowYouWon(); }
internal static void GameOver() { SoundManager.PlaySound(DataHandler.Sounds[SoundType.Gameover], SoundCategory.SFX); ((StageCont)StageCont.GetInstance()).ShowGameOver(); }