summaryrefslogtreecommitdiff
path: root/Penguloon/Levels/IceLevel.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2017-12-14 16:39:16 +0100
committeraldrikboy <aldrikboy@gmail.com>2017-12-14 16:39:16 +0100
commitff30178f505c69bc70b0770a3220ebd6d4706c74 (patch)
treef51c85aa9b7728af5e79c26abd9de47228d888fa /Penguloon/Levels/IceLevel.cs
parent60e8e48047e774a711fee35dfc58a7be993c3d88 (diff)
dab
Diffstat (limited to 'Penguloon/Levels/IceLevel.cs')
-rw-r--r--Penguloon/Levels/IceLevel.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Penguloon/Levels/IceLevel.cs b/Penguloon/Levels/IceLevel.cs
index 47569a8..ad34c0b 100644
--- a/Penguloon/Levels/IceLevel.cs
+++ b/Penguloon/Levels/IceLevel.cs
@@ -1,6 +1,7 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input.Touch;
using Penguloon.Enemies;
+using Penguloon.Objects;
using Penguloon.Scenes;
namespace Penguloon.Levels
@@ -10,6 +11,9 @@ namespace Penguloon.Levels
public IceLevel() : base()
{
this.SplashArt = ContentManager.GetTexture("SplashArt/1");
+ this.Money = 350;
+ this.Health = 200;
+ this.ID = 1;
}
public override void DrawUnique(float deltaTime)
@@ -24,7 +28,7 @@ namespace Penguloon.Levels
public override void CreateMap()
{
- Map = new Map(ParentScene);
+ Map = new Map(ParentScene, this);
Map.SpawnPoint = new Vector2(1 * Map.TileWidth, -1 * Map.TileHeight);
Map.SpawnPointTargetPos = new Vector2(1 * Map.TileWidth, 0 * Map.TileHeight);
Map.FinishPoint = new Vector2(18 * Map.TileWidth, 2 * Map.TileHeight);
@@ -59,6 +63,9 @@ namespace Penguloon.Levels
{ OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO },
{ OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO },
};
+
+ Map.Objects.Add(new PenguinObject(new Vector2(0, 0), Map));
+ Map.Objects.Add(new PenguinObject(new Vector2(Map.TileWidth * 2, 0), Map));
}
}
} \ No newline at end of file