From: Lukas Krickl Date: Sat, 16 Nov 2024 18:22:52 +0000 (+0100) Subject: WIP: map struct X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=abc569d7f98c1260c7985c59de1501f83f78d5db;p=gbrg%2F.git WIP: map struct --- diff --git a/src/wram.s b/src/wram.s index c1b0f69..58d47d7 100644 --- a/src/wram.s +++ b/src/wram.s @@ -70,8 +70,14 @@ player: .adv player_size ; pause all other update execution until then damage_anim: .adv 1 +#define MAP_W 10 +#define MAP_H 10 +#define MAP_TOTAL_ROOMS MAP_W * MAP_H + ; struct map .se 0 +; list of room pointers +.de map_room_ptrs, 2 * MAP_TOTAL_ROOMS .de map_size, 0 ; rooms are 9x9 meta tiles