Astroids.Game1.Draw C# (CSharp) Метод

Draw() защищенный Метод

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Результат void
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Black);

            spriteBatch.Begin();
            foreach (Weapon wep in p.weapList)
            {
                wep.Draw(spriteBatch);
            }
            foreach (Asteroid a in asteroid)
            {
                a.Draw(spriteBatch, Content);
            }
            p.Draw(spriteBatch);
            hud.Draw(spriteBatch, p.GetLife());
            spriteBatch.End();

            base.Draw(gameTime);
        }