public GameEndMenu(MarioCloneGame game) : base() { background = new Texture2D(game.GraphicsDevice, 1, 1); Color[] color = { Color.Black }; background.SetData(color); menuOptions.Add(new Tuple <string, ICommand>("Return To Main Menu", new ReturnToMainMenuCommand(game))); menuOptions.Add(new Tuple <string, ICommand>("Play Again", new ResetLevelCommand(game))); menuOptions.Add(new Tuple <string, ICommand>("Quit Game", new ExitCommand(game))); menuTextPosition = new Vector2(750, 450); variablesUndefined = true; }
public PauseMenu(MarioCloneGame game) : base() { background = new Texture2D(game.GraphicsDevice, 1, 1); Color[] color = { Color.Black }; background.SetData(color); controller.AddInputCommand((int)Keys.P, new PauseCommand(game)); menuOptions.Add(new Tuple <string, ICommand>("Resume Game", new PauseCommand(game))); menuOptions.Add(new Tuple <string, ICommand>("Restart Level", new ResetLevelCommand(game))); menuOptions.Add(new Tuple <string, ICommand>("Return to Main Menu", new ReturnToMainMenuCommand(game))); menuOptions.Add(new Tuple <string, ICommand>("Quit Game", new ExitCommand(game))); menuTextPosition = new Vector2(750, 450); }
public MainMenu(MarioCloneGame game) : base() { this.game = game; background = new Texture2D(game.GraphicsDevice, 1, 1); Color[] color = { Color.Black }; background.SetData(color); mainMenuOptions = new List <Tuple <string, ICommand> >(); mainMenuOptions.Add(new Tuple <string, ICommand>("Single Player Mode", new SinglePlayerSelectedCommand(this))); mainMenuOptions.Add(new Tuple <string, ICommand>("Two Player Mode", new MultiplayerSelectedCommand(this))); mainMenuOptions.Add(new Tuple <string, ICommand>("Quit Game", new ExitCommand(game))); multiplayerSubMenuOptions = new List <Tuple <string, ICommand> >(); multiplayerSubMenuOptions.Add(new Tuple <string, ICommand>("Score Mode (Unlimited Lives)", new ScoreModeSelectedCommand(this))); multiplayerSubMenuOptions.Add(new Tuple <string, ICommand>("Score Mode (Limited Lives)", new ScoreModeWithLivesSelectedCommand(this))); multiplayerSubMenuOptions.Add(new Tuple <string, ICommand>("Race to the Flag", new RaceModeSelected(this))); multiplayerSubMenuOptions.Add(new Tuple <string, ICommand>("Return to Main Menu", new LeaveMultiplayerMenuCommand(this))); menuOptions = mainMenuOptions; menuTextPosition = new Vector2(750, 450); }