Beispiel #1
0
        public void DrawFrame()
        {
            this.spriteBatch.Begin();
            spriteBatch.Draw(backgroundSprite, backgroundPosition, scale: backgroundScale);
            this.spriteBatch.End();

            startButton.DrawButton();
            exitButton.DrawButton();
        }
Beispiel #2
0
        public void DrawFrame(SpriteBatch spriteBatch, MovingBackgroundAnimation backgroundAnimation, float elapsedGameTime, int screenHeight, int screenWidth, SpriteFont arialFont28)
        {
            backgroundAnimation.DrawFrame(elapsedGameTime, screenHeight);

            spriteBatch.Begin();
            spriteBatch.DrawString(arialFont28, "It seems you died...", new Vector2((screenWidth / 2) - 160, (screenHeight / 2) - 300), Color.Red);
            spriteBatch.End();

            upgradeButton.DrawButton();
            exitButton.DrawButton();
        }