From 42671ab55f65af3ace94c50263b16898d32ac692 Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Tue, 19 Dec 2017 10:38:30 +0100 Subject: yos --- Penguloon/Objects/CannonObject.cs | 34 ++++++++++++++++++++++++++++++++++ Penguloon/Objects/GoldPenguinObject.cs | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 Penguloon/Objects/CannonObject.cs create mode 100644 Penguloon/Objects/GoldPenguinObject.cs (limited to 'Penguloon/Objects') 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 -- cgit v1.2.3-70-g09d2