From: Lukas Krickl Date: Wed, 23 Oct 2024 17:35:47 +0000 (+0200) Subject: wip: room loading X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=eee2d57f83b6b9a6e1462a29903916ce8980d448;p=gbrg%2F.git wip: room loading --- diff --git a/src/map.s b/src/map.s index 837d5f4..83845c2 100644 --- a/src/map.s +++ b/src/map.s @@ -26,6 +26,14 @@ #define TWALLD1 0x4A #define TWALLL1 0x4C + ; loads a map + ; inputs: + ; curr_room: ptr to current room + ; curr_room_init_act: ptr to initial actors to be loaded +map_load: + call room_draw + ret + ; maps are collections of rooms ; rooms are made up of 2x2 meta tiles diff --git a/src/wram.s b/src/wram.s index 673710c..ff26def 100644 --- a/src/wram.s +++ b/src/wram.s @@ -90,6 +90,10 @@ curr_room: .adv 2 ; flags for current tiles curr_room_flags: .adv 2 + ; ptr to actor table of size actors_max/2 + ; populate before loading a map +curr_room_init_act: .adv 2 + ; drawing related flags ; UI flags