Esempio n. 1
0
 public InstructionScreen()
     : base("Instructions")
 {
     MenuItem returnItem = new MenuItem("Return to main menu");
     returnItem.Selected += ReturnSelected;
     returnItem.Position = new Vector2(Game1.WIDTH / 3, Game1.HEIGHT  - Game1.HEIGHT / 4);
     MenuItems.Add(returnItem);
 }
Esempio n. 2
0
        //private SaveGameData data;
        public PauseScreen(MainGameScreen screen)
            : base("Pause")
        {
            MenuItem resumeItem = new MenuItem("Resume");
            MenuItem quitItem = new MenuItem("Quit");

            resumeItem.Selected += ResumeGameEvent;
            quitItem.Selected += QuitSelected;

            MenuItems.Add(resumeItem);
            MenuItems.Add(quitItem);
            pausedScreen = screen;
        }
Esempio n. 3
0
        public LossScreen()
            : base("You Lose")
        {
            MenuItem goToMain = new MenuItem("Return to title screen");
            MenuItem quit = new MenuItem("Quit");
            goToMain.Selected += ReturnToMain;
            quit.Selected += QuitSelected;

            goToMain.Position = new Vector2(Game1.WIDTH / 2, Game1.HEIGHT / 2);
            quit.Position = new Vector2(Game1.WIDTH / 2, Game1.HEIGHT / 2 + 50);

            MenuItems.Add(goToMain);
            MenuItems.Add(quit);
        }
Esempio n. 4
0
        public VictoryScreen()
            : base("VICTORY!")
        {
            MenuItem goToMain = new MenuItem("Return to title screen");
            MenuItem quit = new MenuItem("Quit");

            goToMain.Selected += ReturnToMain;
            quit.Selected += QuitSelected;

            goToMain.Position = new Vector2(Game1.WIDTH / 2 - 50, 600);
            quit.Position = new Vector2(Game1.WIDTH / 2 - 50, 650);
            trophyPosition = new Vector2(Game1.WIDTH / 2 - 50, 200);

            MenuItems.Add(goToMain);
            MenuItems.Add(quit);
        }
Esempio n. 5
0
        public MainMenuScreen()
            : base("Bobo The Baby Dragon")
        {
            TransitionOffTime = TimeSpan.Zero;
            MenuItem play = new MenuItem("Play");
            MenuItem options = new MenuItem("Instructions");
            //MenuItem load = new MenuItem("Load");
            MenuItem quit = new MenuItem("Exit");

            play.Selected += PlayMenuItemSelected;
            options.Selected += InstructionsItemSelected;
            quit.Selected += OnCancel;
            //load.Selected += LoadGameSelected;

            play.Position = new Vector2(Game1.WIDTH / 2f - 20, 500);
            options.Position = new Vector2(Game1.WIDTH / 2f - 20, 540);
            //load.Position = new Vector2(Game1.WIDTH / 2f - 20, 580);
            quit.Position = new Vector2(Game1.WIDTH / 2f - 20, 580);
            logoPosition = new Vector2(Game1.WIDTH / 2, 0);
            MenuItems.Add(play);
            MenuItems.Add(options);
            //MenuItems.Add(load);
            MenuItems.Add(quit);
        }