diff options
Diffstat (limited to 'Penguloon/Objects')
| -rw-r--r-- | Penguloon/Objects/CannonObject.cs | 34 | ||||
| -rw-r--r-- | Penguloon/Objects/GoldPenguinObject.cs | 34 |
2 files changed, 68 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 diff --git a/Penguloon/Objects/GoldPenguinObject.cs b/Penguloon/Objects/GoldPenguinObject.cs new file mode 100644 index 0000000..fc5eb62 --- /dev/null +++ b/Penguloon/Objects/GoldPenguinObject.cs @@ -0,0 +1,34 @@ +using Microsoft.Xna.Framework; +using Penguloon.Levels; +using Penguloon.Projectiles; +using System.Collections.Generic; + +namespace Penguloon.Objects +{ + public class GoldPenguinObject : ObjectBase + { + public GoldPenguinObject(Vector2 position, Map map) : base(position, map) + { + this.Texture = ContentManager.GetTexture("Objects/penguin2"); + this.TileSpanX = 1; + this.TileSpanY = 1; + this.Range = Map.TileWidth * 2.5f; + this.AttackSpeedMS = 500; + } + + public override void DrawUnique(float deltaTime) + { + + } + + public override void UpdateUnique(float deltaTime) + { + + } + + public override void SpawnUnique() + { + Projectiles.Add(new SnowballProjectile(this, this.Rotation)); + } + } +}
\ No newline at end of file |
