Example #1
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);
        }