From 604b3809096510583ac21d080a3546bde18dac4a Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sun, 12 Jan 2025 18:54:56 +0100 Subject: [PATCH] actor: wip code for setting RF_ACTOR flag --- src/actor.s | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/actor.s b/src/actor.s index d4b032f..0c094ce 100644 --- a/src/actor.s +++ b/src/actor.s @@ -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 -- 2.30.2