diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2017-12-19 10:38:30 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2017-12-19 10:38:30 +0100 |
| commit | 42671ab55f65af3ace94c50263b16898d32ac692 (patch) | |
| tree | c729f98c208be07836a715d065162de7b2509289 /Penguloon/Objects/CannonObject.cs | |
| parent | a42938d1553565e3d864fa46c04401bbb6f8d13f (diff) | |
yos
Diffstat (limited to 'Penguloon/Objects/CannonObject.cs')
| -rw-r--r-- | Penguloon/Objects/CannonObject.cs | 34 |
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 |
