diff options
Diffstat (limited to 'Penguloon/Objects/MortarObject.cs')
| -rw-r--r-- | Penguloon/Objects/MortarObject.cs | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Penguloon/Objects/MortarObject.cs b/Penguloon/Objects/MortarObject.cs new file mode 100644 index 0000000..a2687d5 --- /dev/null +++ b/Penguloon/Objects/MortarObject.cs @@ -0,0 +1,47 @@ +using Microsoft.Xna.Framework; +using Penguloon.Levels; +using Penguloon.Projectiles; +using System.Collections.Generic; + +namespace Penguloon.Objects +{ + class MortarObject : ObjectBase + { + public MortarObject(Vector2 position, Map map) : base(position, map) + { + this.Texture = ContentManager.GetTexture("Objects/mortar"); + this.TextureBase = ContentManager.GetTexture("Objects/mortarBase"); + this.TileSpanX = 2; + this.TileSpanY = 2; + this.Range = Map.TileWidth * 7f; + this.AttackSpeedMS = 4500; + this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectCannon); + } + + public MortarObject(Map map) : base(map) + { + this.Texture = ContentManager.GetTexture("Objects/mortar"); + this.TextureBase = ContentManager.GetTexture("Objects/mortarBase"); + this.TileSpanX = 2; + this.TileSpanY = 2; + this.Range = Map.TileWidth * 7f; + this.AttackSpeedMS = 4500; + this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectCannon); + } + + 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 |
