From a42938d1553565e3d864fa46c04401bbb6f8d13f Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Thu, 14 Dec 2017 23:35:47 +0100 Subject: New balloons & sounds. Objects can now shoot projectiles. --- Penguloon/Objects/PenguinObject.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Penguloon/Objects/PenguinObject.cs') diff --git a/Penguloon/Objects/PenguinObject.cs b/Penguloon/Objects/PenguinObject.cs index 14ad30a..adbdc7e 100644 --- a/Penguloon/Objects/PenguinObject.cs +++ b/Penguloon/Objects/PenguinObject.cs @@ -1,5 +1,7 @@ using Microsoft.Xna.Framework; using Penguloon.Levels; +using Penguloon.Projectiles; +using System.Collections.Generic; namespace Penguloon.Objects { @@ -11,16 +13,22 @@ namespace Penguloon.Objects this.TileSpanX = 1; this.TileSpanY = 1; this.Range = Map.TileWidth * 2; + this.AttackSpeedMS = 1000; } 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