projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e19a3cb
)
anim: Documented use of animation calls
author
Lukas Krickl
<lukas@krickl.dev>
Sat, 1 Feb 2025 06:34:51 +0000
(07:34 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Sat, 1 Feb 2025 06:34:51 +0000
(07:34 +0100)
src/animation.s
patch
|
blob
|
history
src/player.s
patch
|
blob
|
history
diff --git
a/src/animation.s
b/src/animation.s
index 5fc9ea2ed5edb132782003726176b10c6b39d8c1..e30f763076b1714331ecc9cedcc05af1ae316f76 100644
(file)
--- 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 b0f7ae85816506e224a818f271cbabe766453cbc..5a048ee2aabd1a896837a68ec512d8f7590fa997 100644
(file)
--- 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