; each frame the latest animation is
; updated
- ; updates the current animation
+ ; updates the current animation
+ ; an animation is a simple pointer
+ ; to an update function
+ ; and a range of parameters (4 freely usable bytes)
+ ; the animation updte function is expected
+ ; to set itself to 0000 when the animation is finisehd
+ ; this is how anim_finished performs its check
anim_update:
ret
+
+ ; checks if the current animation is finished
+ ; returns:
+ ; a: 0 -> animation playing
+ ; a: 1 -> animation finished
+anim_finished:
+ ret