TapTitanXNA_Vertouso_Jacob.Level.Draw C# (CSharp) Метод

Draw() публичный Метод

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(bg, new Vector2(0,0), null, Color.White, 0.0f, Vector2.Zero, 0.5f, SpriteEffects.None, 0);

            hero.Draw(gameTime, spriteBatch);

            spriteBatch.DrawString(damageStringFont, damageNumber + " damage!", Vector2.Zero, Color.Black);

            playButton.Draw(gameTime, spriteBatch);
        }