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