From a05ae287aa87259817e6ca7627986e14eeab6098 Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Tue, 2 Jan 2018 23:36:55 +0100 Subject: dank --- Penguloon/Objects/MortarObject.cs | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Penguloon/Objects/MortarObject.cs (limited to 'Penguloon/Objects/MortarObject.cs') 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 -- cgit v1.2.3-70-g09d2