summaryrefslogtreecommitdiff
path: root/Penguloon/Levels/Map.cs
diff options
context:
space:
mode:
authoraldrikboy <aldrikboy@gmail.com>2017-12-11 22:57:04 +0100
committeraldrikboy <aldrikboy@gmail.com>2017-12-11 22:57:04 +0100
commitb0a3f57a68a39c2b027158cdfc9384ddb84dfa38 (patch)
treef3c3be7a2a826f4c3836be2a52573f8aa5000951 /Penguloon/Levels/Map.cs
parentfd6fa4e5cebbe3edb65d50c78dcc8a97ce98ce64 (diff)
haHA
Diffstat (limited to 'Penguloon/Levels/Map.cs')
-rw-r--r--Penguloon/Levels/Map.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Penguloon/Levels/Map.cs b/Penguloon/Levels/Map.cs
index 384d011..699d9eb 100644
--- a/Penguloon/Levels/Map.cs
+++ b/Penguloon/Levels/Map.cs
@@ -21,11 +21,13 @@ namespace Penguloon.Levels
{
this.ParentScene = parentScene;
- MapWidth = (int)StaticUIValues.ScreenViewport.X - StaticUIValues.IngameUIWidth;
- MapHeight = (int)StaticUIValues.ScreenViewport.Y;
+ MapWidth = (int)(StaticUIValues.ScreenViewport.X - StaticUIValues.IngameUIWidth);
+ MapHeight = (int)(StaticUIValues.ScreenViewport.Y);
TileWidth = MapWidth / 18;
- TileHeight = MapHeight / 12;
+ TileHeight = MapHeight / 13;
+
+ MapWidth = TileWidth * 18;
}
public void Draw(float deltaTime)