summaryrefslogtreecommitdiff
path: root/Penguloon/Objects
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2017-12-19 10:38:30 +0100
committeraldrikboy <aldrikboy@gmail.com>2017-12-19 10:38:30 +0100
commit42671ab55f65af3ace94c50263b16898d32ac692 (patch)
treec729f98c208be07836a715d065162de7b2509289 /Penguloon/Objects
parenta42938d1553565e3d864fa46c04401bbb6f8d13f (diff)
yos
Diffstat (limited to 'Penguloon/Objects')
-rw-r--r--Penguloon/Objects/CannonObject.cs34
-rw-r--r--Penguloon/Objects/GoldPenguinObject.cs34
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