示例#1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            _mainMenuBackground.Draw(spriteBatch);

            _play.Draw(spriteBatch);
            _exit.Draw(spriteBatch);

            _userName.Draw(spriteBatch);
            _password.Draw(spriteBatch);
            _server.Draw(spriteBatch);

            _logo.Draw(spriteBatch);

            _zoom += 0.03f;
            spriteBatch.DrawString(_normalFont, "Not finished yet!", new Vector2(950, 250),
                                   Color.Yellow, -0.3f, new Vector2(100, 30), 1.5f + (float)Math.Abs(Math.Sin(_zoom)) / 2, SpriteEffects.None, 0);
        }