diff options
Diffstat (limited to 'Penguloon/Objects/ObjectBase.cs')
| -rw-r--r-- | Penguloon/Objects/ObjectBase.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Penguloon/Objects/ObjectBase.cs b/Penguloon/Objects/ObjectBase.cs index 9d00702..5bfdcb9 100644 --- a/Penguloon/Objects/ObjectBase.cs +++ b/Penguloon/Objects/ObjectBase.cs @@ -16,6 +16,7 @@ namespace Penguloon.Objects public float Range { get; set; } public Texture2D Texture { get; set; } + public Texture2D TextureBase { get; set; } public Texture2D RangeCircle { get; set; } public float Rotation { get; set; } = -0f; @@ -144,6 +145,12 @@ namespace Penguloon.Objects Map.TileWidth * TileSpanX, Map.TileHeight * TileSpanY); + // Draw object base + if (TextureBase != null) + Map.ParentScene.Main.SpriteBatch.Draw(TextureBase, + destinationRectangle: rec, + origin: new Vector2(Texture.Width / 2, Texture.Height / 2)); + // Draw projectiles before drawing the object for (int i = 0; i < Projectiles.Count; i++) Projectiles[i].Draw(deltaTime); |
