summaryrefslogtreecommitdiff
path: root/graphics/src/render.rs
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-10 13:31:04 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-10 13:31:04 -0500
commitb50a79e6f9cd09973a406e5ccc50510aee3423f2 (patch)
tree67d7dd951cc5680f6e2526f48bef7b1bde5db1c3 /graphics/src/render.rs
parentupdate raylib to 5.6-dev (diff)
downloadDungeonCrawl-b50a79e6f9cd09973a406e5ccc50510aee3423f2.tar.gz
DungeonCrawl-b50a79e6f9cd09973a406e5ccc50510aee3423f2.tar.bz2
DungeonCrawl-b50a79e6f9cd09973a406e5ccc50510aee3423f2.zip
graphics: have some window arguments passed in through cmd args, fix camera pos
Diffstat (limited to 'graphics/src/render.rs')
-rw-r--r--graphics/src/render.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index 1061af3..945528b 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -736,8 +736,8 @@ impl DungeonExt for Dungeon {
};
/// The maximum position the camera is allowed to go
const CAMERA_MAX: Vector2 = vec2! {
- MAP_SIZE * TILE_SIZE - RENDER_WIDTH/2,
- MAP_SIZE * TILE_SIZE - RENDER_HEIGHT/2 - UI_HEIGHT/2,
+ MAP_SIZE * TILE_SIZE - RENDER_WIDTH/2 - TILE_SIZE/2,
+ MAP_SIZE * TILE_SIZE - RENDER_HEIGHT/2 - TILE_SIZE/2,
};
let pos = self.camera();