From b0a3f57a68a39c2b027158cdfc9384ddb84dfa38 Mon Sep 17 00:00:00 2001 From: aldrikboy Date: Mon, 11 Dec 2017 22:57:04 +0100 Subject: haHA --- Penguloon/Levels/Map.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Penguloon/Levels/Map.cs') 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) -- cgit v1.2.3-70-g09d2