actor: wip code for setting RF_ACTOR flag
authorLukas Krickl <lukas@krickl.dev>
Sun, 12 Jan 2025 17:54:56 +0000 (18:54 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 12 Jan 2025 17:54:56 +0000 (18:54 +0100)
src/actor.s

index d4b032ff5d3b7a99fa1f60057e11726e42f71641..0c094ce00807b54b4889d5c9d405913e93096195 100644 (file)
@@ -171,6 +171,20 @@ actor_anim_verify:
   call anim_clear
   ret
 
+  ; marks the current actor's tile 
+  ; as occupied by an actor
+  ; also removes the flag from the actor's current tile 
+  ; this only works for the default case of 
+  ; an acotr needing a single tile.
+  ; inputs:
+  ;   bc: original y/x position ptr
+  ;  anim_target_y/x: target position
+  ; returns:
+  ;   sets the RF_ACTOR flag at target_y/x 
+  ;   unsets RF_ACTOR at [bc] and [bc+1]
+actor_tile_update_flag:
+  ret
+
 ; function ptrs for each actor type 
 ; inputs:
 ;   bc: actor ptr