From: Lukas Krickl Date: Mon, 30 Jun 2025 15:32:21 +0000 (+0200) Subject: defs: changed y viewport to 6 tiles X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=73c4448d8e1029672b5db94c28b7222928771300;p=gbrg%2F.git defs: changed y viewport to 6 tiles --- 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