예제 #1
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);
            spriteBatch.Begin();

            //игра
            Background.Draw(spriteBatch);
            Player.Draw(spriteBatch);
            _asteroid1.Draw(spriteBatch);
            _asteroid2.Draw(spriteBatch);
            _asteroid3.Draw(spriteBatch);
            _asteroid4.Draw(spriteBatch);
            _asteroid5.Draw(spriteBatch);
            _bonusHeals.Draw(spriteBatch);

            spriteBatch.End();
            base.Draw(gameTime);
        }