/// <summary>
        /// Draws the background screen.
        /// </summary>
        public override void Draw(GameTime gameTime)
        {
            SpriteBatch spriteBatch = ScreenManager.SpriteBatch;

            ScreenManager.SpriteBatchBegin();

            Rectangle screenFullRect = ResolutionBuddy.Resolution.ScreenArea;

            //Draw the game title!
            _titleText.ShadowColor = new Color(0.15f, 0.15f, 0.15f, Transition.Alpha);
            _titleText.Write("MenuBuddySample!!!",
                             new Vector2(Resolution.TitleSafeArea.Center.X, Resolution.TitleSafeArea.Center.Y * 0.05f),
                             Justify.Center,
                             1.5f,
                             new Color(0.85f, 0.85f, 0.85f, Transition.Alpha),
                             spriteBatch,
                             Time);

            //draw "dannobot games"
            _dannobotText.Write("@DannobotGames",
                                new Vector2((Resolution.TitleSafeArea.Right * 0.97f),
                                            ((Resolution.TitleSafeArea.Bottom) - (_dannobotText.MeasureString("@DannobotGames").Y * 0.65f))),
                                Justify.Right,
                                0.5f,
                                new Color(0.85f, 0.85f, 0.85f, Transition.Alpha),
                                spriteBatch,
                                Time);

            ScreenManager.SpriteBatchEnd();
        }
Beispiel #2
0
        /// <summary>
        /// Draws the background screen.
        /// </summary>
        public override void Draw(GameTime gameTime)
        {
            SpriteBatch spriteBatch = ScreenManager.SpriteBatch;

            ScreenManager.SpriteBatchBegin();

            //Draw the game title!
            _titleText.ShadowColor = new Color(0.15f, 0.15f, 0.15f, Transition.Alpha);
            _titleText.Write("Mono Game Project",
                             new Vector2(Resolution.TitleSafeArea.Center.X, Resolution.TitleSafeArea.Center.Y * 0.05f),
                             Justify.Center,
                             1.5f,
                             new Color(0.85f, 0.85f, 0.85f, Transition.Alpha),
                             spriteBatch,
                             Time);


            ScreenManager.SpriteBatchEnd();
        }