From: Lukas Krickl Date: Sun, 12 Jan 2025 17:54:56 +0000 (+0100) Subject: actor: wip code for setting RF_ACTOR flag X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=604b3809096510583ac21d080a3546bde18dac4a;p=gbrg%2F.git actor: wip code for setting RF_ACTOR flag --- 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