From: Lukas Krickl Date: Sun, 15 Dec 2024 18:11:52 +0000 (+0100) Subject: Added docs for room transitions X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=37b2ae63e1c06a4be338137704ea5d79357f63fa;p=gbrg%2F.git Added docs for room transitions --- diff --git a/src/map.s b/src/map.s index 258d510..9ccc926 100644 --- a/src/map.s +++ b/src/map.s @@ -33,7 +33,7 @@ ; they will transition to the map to the north/south/east/west ; a map also contains a memory region for all the room's tables ; room: - ; a room is a collection of tiles, falgs and actor tables + ; a room is a collection of tiles, falgs, exits and actor tables ; loads a map ; inputs: @@ -49,6 +49,13 @@ room_load_from: call room_load_actors ret + ; transitions to a new room + ; that is part of the map: + ; inputs: + ; curr_room_exits: ptr to exits table + ; a: direction EAST, WEST, NORTH, SOUTH +room_goto: + ret ; loads actors from ; [curr_room_init_act]