anim: Documented use of animation calls
authorLukas Krickl <lukas@krickl.dev>
Sat, 1 Feb 2025 06:34:51 +0000 (07:34 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sat, 1 Feb 2025 06:34:51 +0000 (07:34 +0100)
src/animation.s
src/player.s

index 5fc9ea2ed5edb132782003726176b10c6b39d8c1..e30f763076b1714331ecc9cedcc05af1ae316f76 100644 (file)
@@ -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
 
-
index b0f7ae85816506e224a818f271cbabe766453cbc..5a048ee2aabd1a896837a68ec512d8f7590fa997 100644 (file)
@@ -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