コード例 #1
0
ファイル: WardTracker.cs プロジェクト: tekintr/Elobuddy
            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);
            }
コード例 #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]);
     }
 }