diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-07 15:38:41 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-07 15:38:41 -0500 |
| commit | ed42b5fe8d9ab60201fd15583686d63894faf532 (patch) | |
| tree | 028008b4fa2f632ce75a009c57b2eea14c9277e9 /graphics | |
| parent | graphics: refactor to get rid of casting hell, use u16 when possible (diff) | |
| download | DungeonCrawl-ed42b5fe8d9ab60201fd15583686d63894faf532.tar.gz DungeonCrawl-ed42b5fe8d9ab60201fd15583686d63894faf532.tar.bz2 DungeonCrawl-ed42b5fe8d9ab60201fd15583686d63894faf532.zip | |
graphics: properly center camera with new ui bar added
Diffstat (limited to 'graphics')
| -rw-r--r-- | graphics/src/render.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs index 1d79b13..35b0ae3 100644 --- a/graphics/src/render.rs +++ b/graphics/src/render.rs @@ -182,7 +182,7 @@ impl Renderer { (MAP_SIZE * self.tile_size) - (width/2), (MAP_SIZE * self.tile_size) - (height/2), }), - offset: vec2! {width/2, height/2 + ui_height}, + offset: vec2! {width/2, height/2 + ui_height/2}, rotation: 0.0, zoom: 1.0, } |