Example #1
0
        //Draw everything.
        public void Draw(SpriteBatch sprite)
        {
            player.Draw(sprite);
            pointText.Draw(sprite);
            foreach (var shot in lasers)
            {
                shot.Draw(sprite);
            }

            foreach (var invader in invaderDestroyed)
            {
                invader.Draw(sprite);
            }
            foreach (Enemy invader in invaders)
            {
                invader.Draw(sprite);
            }
            foreach (var marker in lifeMarkers)
            {
                marker.Draw(sprite);
            }
            foreach (var blockFormation in blockFormations)
            {
                blockFormation.Draw(sprite);
            }
            UFO.Draw(sprite);
        }
Example #2
0
        //Draw everything in the menu.
        public void Draw(SpriteBatch sprite)
        {
            cursor.Draw(sprite);

            title.Draw(sprite);

            play.Draw(sprite);
            score.Draw(sprite);
            end.Draw(sprite);
        }
Example #3
0
 //Draw.
 public void Draw(SpriteBatch sprite)
 {
     foreach (var place in places)
     {
         place.Draw(sprite);
     }
     foreach (var score in scores)
     {
         score.Draw(sprite);
     }
     foreach (var name in names)
     {
         name.Draw(sprite);
     }
     if (inputName == true)
     {
         input.Draw(sprite);
     }
 }