示例#1
0
        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;
        }
示例#2
0
 private StageCont()
 {
     //TODO: init
     world    = World.GetInstance();
     instance = this;
 }
示例#3
0
 private StageCont()
 {
     //TODO: init
     world = World.GetInstance();
     instance = this;
 }
示例#4
0
 internal static void PlayerWon()
 {
     ((StageCont)StageCont.GetInstance()).ShowYouWon();
 }
示例#5
0
 internal static void GameOver()
 {
     SoundManager.PlaySound(DataHandler.Sounds[SoundType.Gameover], SoundCategory.SFX);
     ((StageCont)StageCont.GetInstance()).ShowGameOver();
 }