/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here gameState = GameState.TitleScreen; mainMenu = new MainMenu(); audioManager = new AudioManager(this); Texture2D titlepic = Content.Load<Texture2D>("TitleImage"); titleScreen = new TitleScreen(titlepic, new Vector2(Globals.SCREEN_WIDTH, Globals.SCREEN_HEIGHT), TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(4), true); titleScreen.AddImage(Content.Load<Texture2D>("TitleInfo")); base.Initialize(); }
public override void Activate(MainMenu mainMenu) { mainMenu.DisplayMenu(options); }
public override void Activate(MainMenu mainMenu) { mainMenu.BackToMainMenu(); }
public override void Activate(MainMenu mainMenu) { Level level = new Level("Levels/" + name); Globals.game.LoadNewLevel(level); }
public override void Activate(MainMenu mainMenu) { mainMenu.DisplayMenu(levels); }
public virtual void Activate(MainMenu mainMenu) { }