From 73c4448d8e1029672b5db94c28b7222928771300 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 30 Jun 2025 17:32:21 +0200 Subject: [PATCH] defs: changed y viewport to 6 tiles --- src/defs.s | 2 +- src/unit.s | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/defs.s b/src/defs.s index 5ae90af..807ac3a 100644 --- a/src/defs.s +++ b/src/defs.s @@ -22,7 +22,7 @@ #define MAP_SIZE (MAP_W * MAP_H) #define VIEW_PORT_TILES_W 6 -#define VIEW_PORT_TILES_H 5 +#define VIEW_PORT_TILES_H 6 ; seed for the rng ; 8 bit signed int diff --git a/src/unit.s b/src/unit.s index 1989f29..bb11525 100644 --- a/src/unit.s +++ b/src/unit.s @@ -556,7 +556,7 @@ unit_scroll_center: ld a, 0x05 @not_min_x: - sub a, (MAP_W - VIEW_PORT_TILES_W ) / 2 + sub a, (MAP_W - VIEW_PORT_TILES_W) / 2 mul16 a ld [scroll_x], a -- 2.30.2