Added docs for room transitions
authorLukas Krickl <lukas@krickl.dev>
Sun, 15 Dec 2024 18:11:52 +0000 (19:11 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 15 Dec 2024 18:11:52 +0000 (19:11 +0100)
src/map.s

index 258d5108d377247d9f2ae0e6029434549fd0f037..9ccc926a0d4318cc54d4c11162f4d3de7d4e6166 100644 (file)
--- 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]