diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2017-12-14 23:35:47 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2017-12-14 23:35:47 +0100 |
| commit | a42938d1553565e3d864fa46c04401bbb6f8d13f (patch) | |
| tree | 24a24a3bd7eb01607c30e176ee0fcaf4e912a277 /Penguloon/Objects/PenguinObject.cs | |
| parent | 98fb0bdcf3fb02f68f07a72cab211debb827e978 (diff) | |
New balloons & sounds. Objects can now shoot projectiles.
Diffstat (limited to 'Penguloon/Objects/PenguinObject.cs')
| -rw-r--r-- | Penguloon/Objects/PenguinObject.cs | 12 |
1 files changed, 10 insertions, 2 deletions
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 |
