Example #1
0
        /// <summary>
        /// Draws the Start screen and its elements.
        /// </summary>
        /// <param name="spriteBatch">
        /// The SpriteBatch object used to draw with.
        /// </param>
        public override void Draw(SpriteBatch spriteBatch)
        {
            // Draw the backdrop.
            spriteBatch.Draw(
                backdrop,
                new Rectangle(0, 0, Game1.WindowWidth, Game1.WindowHeight),
                backdropColour);

            // Draw the buttons.
            StartButton.Draw(spriteBatch, "Start");
            LeaderboardButton.Draw(spriteBatch, "Leaderboard");
            QuitButton.Draw(spriteBatch, "Quit");

            // Draw the game title text and version number.
            spriteBatch.DrawString(
                subtextFont,
                "v1.1.0.0",
                subtextPosition,
                Color.MediumAquamarine);

            spriteBatch.DrawString(
                textFont,
                "Wall Dodger",
                textPosition,
                Color.Aquamarine);
        }