From ff30178f505c69bc70b0770a3220ebd6d4706c74 Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Thu, 14 Dec 2017 16:39:16 +0100 Subject: dab --- Penguloon/Levels/IceLevel.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Penguloon/Levels/IceLevel.cs') 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 -- cgit v1.2.3-70-g09d2