summaryrefslogtreecommitdiff
path: root/Penguloon/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Penguloon/Objects')
-rw-r--r--Penguloon/Objects/KingPenguinObject.cs45
-rw-r--r--Penguloon/Objects/MortarObject.cs4
-rw-r--r--Penguloon/Objects/ObjectBase.cs5
3 files changed, 48 insertions, 6 deletions
diff --git a/Penguloon/Objects/KingPenguinObject.cs b/Penguloon/Objects/KingPenguinObject.cs
new file mode 100644
index 0000000..721497b
--- /dev/null
+++ b/Penguloon/Objects/KingPenguinObject.cs
@@ -0,0 +1,45 @@
+using Microsoft.Xna.Framework;
+using Penguloon.Levels;
+using Penguloon.Projectiles;
+using System.Collections.Generic;
+
+namespace Penguloon.Objects
+{
+ public class KingPenguinObject : ObjectBase
+ {
+ public KingPenguinObject(Vector2 position, Map map) : base(position, map)
+ {
+ this.Texture = ContentManager.GetTexture("Objects/penguin3");
+ this.TileSpanX = 2;
+ this.TileSpanY = 2;
+ this.Range = Map.TileWidth * 3.5f;
+ this.AttackSpeedMS = 100;
+ this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectKingPenguin);
+ }
+
+ public KingPenguinObject(Map map) : base(map)
+ {
+ this.Texture = ContentManager.GetTexture("Objects/penguin3");
+ this.TileSpanX = 2;
+ this.TileSpanY = 2;
+ this.Range = Map.TileWidth * 3.5f;
+ this.AttackSpeedMS = 100;
+ this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectKingPenguin);
+ }
+
+ 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
diff --git a/Penguloon/Objects/MortarObject.cs b/Penguloon/Objects/MortarObject.cs
index a2687d5..c210044 100644
--- a/Penguloon/Objects/MortarObject.cs
+++ b/Penguloon/Objects/MortarObject.cs
@@ -15,7 +15,7 @@ namespace Penguloon.Objects
this.TileSpanY = 2;
this.Range = Map.TileWidth * 7f;
this.AttackSpeedMS = 4500;
- this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectCannon);
+ this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectMortar);
}
public MortarObject(Map map) : base(map)
@@ -26,7 +26,7 @@ namespace Penguloon.Objects
this.TileSpanY = 2;
this.Range = Map.TileWidth * 7f;
this.AttackSpeedMS = 4500;
- this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectCannon);
+ this.infoText = map.Level.ParentScene.Main.Resources.GetString(Resource.String.ObjectMortar);
}
public override void DrawUnique(float deltaTime)
diff --git a/Penguloon/Objects/ObjectBase.cs b/Penguloon/Objects/ObjectBase.cs
index c5b17be..6474afe 100644
--- a/Penguloon/Objects/ObjectBase.cs
+++ b/Penguloon/Objects/ObjectBase.cs
@@ -162,14 +162,11 @@ namespace Penguloon.Objects
destinationRectangle: rec,
rotation: (float)rot,
origin: new Vector2(Texture.Width / 2, Texture.Height / 2));
-
- //Map.ParentScene.Main.SpriteBatch.Draw(RangeCircle,
- // destinationRectangle: new Rectangle((int)rec.X - ((int)Range), (int)rec.Y - ((int)Range), (int)Range * 2, (int)Range * 2));
}
public abstract void DrawUnique(float deltaTime);
- private Texture2D CreateCircle(int radius)
+ public Texture2D CreateCircle(int radius)
{
Texture2D texture = new Texture2D(Map.ParentScene.Main.GraphicsDevice, radius, radius);
Color[] colorData = new Color[radius * radius];