Exemplo n.º 1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);

            spriteBatch.DrawString(TextureManager.SpriteFont20, "Victory!", new Vector2(Globals.ScreenSize.X / 2 - 70, 20), new Color(0, 255, 255), 0f, Vector2.Zero, 1.5f, SpriteEffects.None, 0f);

            Menu.Draw(spriteBatch);
            Quit.Draw(spriteBatch);
        }
Exemplo n.º 2
0
 private void Menu_Paint(object sender, PaintEventArgs e)
 {
     Play.Draw(e.Graphics);
     Achiev.Draw(e.Graphics);
     Quit.Draw(e.Graphics);
     Leaderboards.Draw(e.Graphics);
     Easy.Draw(e.Graphics);
     Medium.Draw(e.Graphics);
     Hard.Draw(e.Graphics);
 }
Exemplo n.º 3
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);

            spriteBatch.DrawString(TextureManager.SpriteFont20, "Game Over", new Vector2(400, 60), Color.Red, 0f, Vector2.Zero, 2f, SpriteEffects.None, 0f);
            SceneManager.mapScene.KilledPlayer.DrawGameOver(spriteBatch);
            SceneManager.mapScene.KilledPlayer.Direction = SceneManager.mapScene.KilledPlayer.StandardDirection;

            Quit.Draw(spriteBatch);
            Menu.Draw(spriteBatch);
        }
Exemplo n.º 4
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            Start.Draw(spriteBatch);
            Options.Draw(spriteBatch);
            Continue.Draw(spriteBatch);
            Quit.Draw(spriteBatch);

            // Warning
            if (Start.Hover() && SceneManager.started)
            {
                spriteBatch.DrawString(TextureManager.SpriteFont15, "Warning!\nIf you start a new game you will lose all previous progress!", new Vector2(430, 170), Color.Red);
            }

            foreach (GameObject go in GameObjects)
            {
                go.Draw(spriteBatch);
            }

            spriteBatch.DrawString(TextureManager.SpriteFont15, "Score: " + Score.ToString("0"), new Vector2(Globals.ScreenSize.X - 150, 0), Color.Yellow);
            spriteBatch.DrawString(TextureManager.SpriteFont50, "Outer Space", new Vector2(Globals.ScreenSize.X / 2, 10), new Color(0, 255, 255), 0f, new Vector2(TextureManager.SpriteFont50.MeasureString("Outer Space").X / 2, 0), titleSize, SpriteEffects.None, 0f);
        }
Exemplo n.º 5
0
        public void DrawLevel(SpriteBatch spriteBatch)
        {
            enter.Draw(spriteBatch);
            quit.Draw(spriteBatch);

            foreach (AnimatedSprite enemy in enemies)
            {
                enemy.Draw(spriteBatch);
            }
            foreach (Block block in blocks)
            {
                block.Draw(spriteBatch);
            }
            foreach (Gem gem in gems)
            {
                gem.Draw(spriteBatch);
            }
            if (levelState != LevelState.Overview)
            {
                hero.Draw(spriteBatch);
            }
        }
Exemplo n.º 6
0
        public void Draw(SpriteBatch theSpriteBatch, ContentManager theContentManager)
        {
            if (MyMenuState == MenuState.Startup)
            {
                Logo.Draw(theSpriteBatch, theContentManager);
                PlayButton.Draw(theSpriteBatch, theContentManager);
                OptionsButton.Draw(theSpriteBatch, theContentManager);
                HighScoresButton.Draw(theSpriteBatch, theContentManager);
                ExitGameButton.Draw(theSpriteBatch, theContentManager);
            }
            else if (MyMenuState == MenuState.Options)
            {
                MusicOn.Draw(theSpriteBatch, theContentManager);
                MusicOff.Draw(theSpriteBatch, theContentManager);
                SoundOn.Draw(theSpriteBatch, theContentManager);
                SoundOff.Draw(theSpriteBatch, theContentManager);
                Cheats.Draw(theSpriteBatch, theContentManager);
                Debug.Draw(theSpriteBatch, theContentManager);
                Mouse.Draw(theSpriteBatch, theContentManager);
                Keyboard.Draw(theSpriteBatch, theContentManager);
                Kinect.Draw(theSpriteBatch, theContentManager);
                Back.Draw(theSpriteBatch, theContentManager);

                OptionsLabel.Draw(theSpriteBatch, theContentManager);
                MusicLabel.Draw(theSpriteBatch, theContentManager);
                SoundFXLabel.Draw(theSpriteBatch, theContentManager);
                ControlsLabel.Draw(theSpriteBatch, theContentManager);
            }
            else if (MyMenuState == MenuState.Pause)
            {
                backdrop.Draw(theSpriteBatch, theContentManager);

                Resume.Draw(theSpriteBatch, theContentManager);
                MainMenu.Draw(theSpriteBatch, theContentManager);
                Quit.Draw(theSpriteBatch, theContentManager);
            }
        }