Exemple #1
0
        public static void Update(MouseState mouse)
        {
            Resume.Update(mouse);
            Save.Update(mouse);
            MainMenu.Options.Update(mouse);
            ExitM.Update(mouse);

            if (Resume.IsClicked)
            {
                Game1.CurrentGameState = Game1.Gamestates.Playing;
            }

            if (ExitM.IsClicked)
            {
                Game1.CurrentGameState = Game1.Gamestates.Mainmenu;
            }

            if (Save.IsClicked)
            {
                Game1.CurrentGameState = Game1.Gamestates.Save;
            }

            if (MainMenu.Options.IsClicked)
            {
                Game1.CurrentGameState = Game1.Gamestates.OptionsIg;
            }
        }
Exemple #2
0
 public static void Draw(SpriteBatch sbatch)
 {
     MainMenu.Hatter.Draw(sbatch);
     MainMenu.Logo.DrawC(sbatch, Color.Beige);
     MainMenu.Karakter.DrawC(sbatch, Color.Cyan);
     MainMenu.Options.Draw(sbatch);
     ExitM.Draw(sbatch);
     Resume.Draw(sbatch);
     Save.Draw(sbatch);
 }
Exemple #3
0
 void Awake()
 {
     self = this;
 }