public void DrawMinimap()
            {
                // Draw the ward icon on the minimap
                var desc   = MinimapSprite.Texture.GetLevelDescription(0);
                var offset = new Vector2(-desc.Width / 2f, -desc.Height / 2f);

                MinimapSprite.Draw(MinimapPosition + offset);
            }
Exemple #2
0
 public void Draw(SpriteBatch spriteBatch)
 {
     HUDSprite.Draw(spriteBatch, HUDDestinationRectangle);
     levelNumSprite.Draw(spriteBatch, levelNumDestinationRectangle);
     MinimapSprite.Draw(spriteBatch, MinimapDestinationRectangle);
     for (int index = 0; index < HeartSprites.Count; index++)
     {
         HeartSprites[index].Draw(spriteBatch, HeartDestinationRectangles[index]);
     }
 }