summaryrefslogtreecommitdiff
path: root/Penguloon/Objects/ObjectBase.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2018-01-02 23:36:55 +0100
committeraldrikboy <aldrikboy@gmail.com>2018-01-02 23:36:55 +0100
commita05ae287aa87259817e6ca7627986e14eeab6098 (patch)
tree18578b24ab1c35aec05c465fbdc0af517b716fed /Penguloon/Objects/ObjectBase.cs
parent0c58f5048e37ad40c68f56f3dc7756d60816cc0e (diff)
dank
Diffstat (limited to 'Penguloon/Objects/ObjectBase.cs')
-rw-r--r--Penguloon/Objects/ObjectBase.cs7
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);