summaryrefslogtreecommitdiff
path: root/Penguloon/Levels/IceLevel2.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2017-12-29 00:32:34 +0100
committeraldrikboy <aldrikboy@gmail.com>2017-12-29 00:32:34 +0100
commit5373e919a0d9e389fc2076963f610d044c21ccb5 (patch)
treedafaf1e2f4857d37bb8ba36cd02c8ccd7d40635e /Penguloon/Levels/IceLevel2.cs
parenta9adf4d4d52a9d42b885e2fc1dee9ea2f4451331 (diff)
level implementation XDDDDDDDd
Diffstat (limited to 'Penguloon/Levels/IceLevel2.cs')
-rw-r--r--Penguloon/Levels/IceLevel2.cs74
1 files changed, 74 insertions, 0 deletions
diff --git a/Penguloon/Levels/IceLevel2.cs b/Penguloon/Levels/IceLevel2.cs
new file mode 100644
index 0000000..86e3ce3
--- /dev/null
+++ b/Penguloon/Levels/IceLevel2.cs
@@ -0,0 +1,74 @@
+using Microsoft.Xna.Framework;
+using Microsoft.Xna.Framework.Input.Touch;
+using Penguloon.Enemies;
+using Penguloon.Objects;
+using Penguloon.Scenes;
+
+namespace Penguloon.Levels
+{
+ public class IceLevel2 : LevelBase
+ {
+ public IceLevel2() : base()
+ {
+ this.SplashArt = ContentManager.GetTexture("SplashArt/2");
+ this.Money = 350;
+ this.Health = 200;
+ this.ID = 2;
+ this.MinimumLevel = 5;
+ }
+
+ public override void DrawUnique(float deltaTime)
+ {
+ base.DrawUnique(deltaTime);
+ }
+
+ public override void UpdateUnique(float deltaTime, TouchLocation[] touchLocations)
+ {
+ base.UpdateUnique(deltaTime, touchLocations);
+ }
+
+ public override void CreateMap()
+ {
+ Map = new Map(ParentScene, this);
+ Map.SpawnPoint = new Vector2(18 * Map.TileWidth, 6 * Map.TileHeight);
+ Map.SpawnPointTargetPos = new Vector2(17 * Map.TileWidth, 6 * Map.TileHeight);
+ Map.FinishPoint = new Vector2(-1 * Map.TileWidth, 9 * Map.TileHeight);
+
+ Tile OO = new Tile(0, Direction.None);
+
+ Tile DN = new Tile(6, Direction.Down);
+ Tile RT = new Tile(5, Direction.Right);
+ Tile LT = new Tile(5, Direction.Left);
+ Tile UP = new Tile(6, Direction.Up);
+
+ Tile TR = new Tile(4, Direction.Right);
+ Tile RU = new Tile(4, Direction.Up);
+ Tile DR = new Tile(3, Direction.Right);
+
+ Tile DL = new Tile(1, Direction.Down);
+ Tile RD = new Tile(3, Direction.Down);
+ Tile LD = new Tile(1, Direction.Left);
+ Tile LU = new Tile(2, Direction.Left);
+ Tile TL = new Tile(2, Direction.Up);
+
+ Tile FN = new Tile(5, Direction.Finish);
+
+ Map.TileMap = new Tile[13, 18]
+ {
+ { 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 },
+ { OO,OO,RD,LT,LT,LT,LT,LT,LT,LT,LT,LT,LT,LT,LT,LD,OO,OO },
+ { OO,OO,DN,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,UP,OO,OO },
+ { OO,OO,DN,OO,DR,RT,DL,OO,DR,RT,DL,OO,OO,OO,OO,UP,OO,OO },
+ { OO,OO,DN,OO,UP,OO,DN,OO,UP,OO,DN,OO,OO,OO,OO,UP,OO,OO },
+ { OO,OO,DN,OO,UP,OO,DN,OO,UP,OO,DN,OO,OO,OO,OO,RU,LT,LT },
+ { OO,OO,TR,RT,TL,OO,TR,RT,TL,OO,TR,RT,RT,DL,OO,OO,OO,OO },
+ { OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,DN,OO,OO,OO,OO },
+ { FN,LD,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,OO,DN,OO,OO,OO,OO },
+ { OO,UP,OO,RD,LT,LT,LT,LT,LT,LT,LT,LT,LT,LU,OO,OO,OO,OO },
+ { OO,RU,LT,LU,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 },
+ };
+ }
+ }
+} \ No newline at end of file