From b50a79e6f9cd09973a406e5ccc50510aee3423f2 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 10 Nov 2025 13:31:04 -0500 Subject: graphics: have some window arguments passed in through cmd args, fix camera pos --- graphics/src/render.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics/src/render.rs') 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(); -- cgit v1.2.3-freya