Beispiel #1
0
        // If player is not dead, draw
        public void Draw(SpriteBatch spriteBatch)
        {
            playerShots.Draw(spriteBatch);

            if (player.dead == false)
            {
                player.Draw(spriteBatch);
            }
        }
Beispiel #2
0
        // Draw enemies and their projectiles
        public void Draw(SpriteBatch spriteBatch)
        {
            EnemyShots.Draw(spriteBatch);

            foreach (Enemy enemy in Enemies)
            {
                enemy.Draw(spriteBatch);
            }
        }