From: Lukas Krickl Date: Sat, 1 Feb 2025 06:34:51 +0000 (+0100) Subject: anim: Documented use of animation calls X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=1cb51107f7b0d84ea1639c901b33a3364fd8a6d1;p=gbrg%2F.git anim: Documented use of animation calls --- diff --git a/src/animation.s b/src/animation.s index 5fc9ea2..e30f763 100644 --- a/src/animation.s +++ b/src/animation.s @@ -2,6 +2,11 @@ ; each frame the latest animation is ; updated + ; animation functions: + ; inputs: + ; hl: actor ptr + ; bc: anim ptr + ; sets up animation ptr anim_init: ld hl, anim_table @@ -45,4 +50,3 @@ anim_walk_east: anim_walk_west: ret - diff --git a/src/player.s b/src/player.s index b0f7ae8..5a048ee 100644 --- a/src/player.s +++ b/src/player.s @@ -62,7 +62,7 @@ player_update: ld a, [who] cp a, WHO_PLAYER jp nz, @skip_input - + ; play move animation ; and skip inputs if it is still ; ongoing