// CONSTRUCTOR: public GameStateManager(MonogameParty game) { this.game = game; this.km = new KeyboardManager(); this.gameOptions = new GameOptions(); this.random = new Random(); this.debugMode = false; this.clearAllStates = false; // Add the ** FIRST ** game states here: audioEngine = new S_AudioEngine(this, 0, 0); this.AddState(audioEngine, 0); State mainMenu = new S_MainMenu(this, 0, 0); this.AddState(mainMenu, 0); this.stateCount = 2; }
static void Main() { using (var game = new MonogameParty()) game.Run(); }