Added docs for map flags
authorLukas Krickl <lukas@krickl.dev>
Wed, 11 Dec 2024 13:07:57 +0000 (14:07 +0100)
committerLukas Krickl <lukas@krickl.dev>
Wed, 11 Dec 2024 13:07:57 +0000 (14:07 +0100)
src/wram.s

index 9c38b84baae5af1233f9c4543cb1899db08836cd..b5a148d3b946ccdcdc104d017ebecaf012d086b9 100644 (file)
@@ -91,8 +91,17 @@ damage_anim: .adv 1
 
 ; room flags
 .se 1
+  ; set if a tile is a wall
 .de RF_WALL, 1
+  ; set if a tile is a door
 .de RF_DOOR, 2
+  ; set if a tile is blocked by an actor
+  ; if this flag is set 
+  ; collision resolution will 
+  ; need to look up the actor in question by
+  ; iterating over the actor table + player 
+  ; and checking each position
+  ; TODO: maybe add an actor lookup table for each tile
 .de RF_ACTOR, 4
 
   ; current room struct