public Game() { Graphics = new GraphicsDeviceManager(this); Content = new SmartContentManager(Content.ServiceProvider); Content.RootDirectory = "Content"; instance = this; }
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; }