summaryrefslogtreecommitdiff
path: root/Penguloon/Levels/IceLevel.cs
diff options
context:
space:
mode:
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