summaryrefslogtreecommitdiff
path: root/Penguloon/Objects/CannonObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Objects/CannonObject.cs')
-rw-r--r--Penguloon/Objects/CannonObject.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/Penguloon/Objects/CannonObject.cs b/Penguloon/Objects/CannonObject.cs
new file mode 100644
index 0000000..f3cf7ff
--- /dev/null
+++ b/Penguloon/Objects/CannonObject.cs
@@ -0,0 +1,34 @@
+using Microsoft.Xna.Framework;
+using Penguloon.Levels;
+using Penguloon.Projectiles;
+using System.Collections.Generic;
+
+namespace Penguloon.Objects
+{
+ class CannonObject : ObjectBase
+ {
+ public CannonObject(Vector2 position, Map map) : base(position, map)
+ {
+ this.Texture = ContentManager.GetTexture("Objects/cannon");
+ this.TileSpanX = 1;
+ this.TileSpanY = 1;
+ this.Range = Map.TileWidth * 3f;
+ this.AttackSpeedMS = 2500;
+ }
+
+ public override void DrawUnique(float deltaTime)
+ {
+
+ }
+
+ public override void UpdateUnique(float deltaTime)
+ {
+
+ }
+
+ public override void SpawnUnique()
+ {
+ Projectiles.Add(new CannonballProjectile(this, this.Rotation));
+ }
+ }
+} \ No newline at end of file