diff options
| author | aldrikboy <aldrikboy@gmail.com> | 2017-12-11 22:57:04 +0100 |
|---|---|---|
| committer | aldrikboy <aldrikboy@gmail.com> | 2017-12-11 22:57:04 +0100 |
| commit | b0a3f57a68a39c2b027158cdfc9384ddb84dfa38 (patch) | |
| tree | f3c3be7a2a826f4c3836be2a52573f8aa5000951 /Penguloon/Levels/Map.cs | |
| parent | fd6fa4e5cebbe3edb65d50c78dcc8a97ce98ce64 (diff) | |
haHA
Diffstat (limited to 'Penguloon/Levels/Map.cs')
| -rw-r--r-- | Penguloon/Levels/Map.cs | 8 |
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) |
