animation: removed ready flag
authorLukas Krickl <lukas@krickl.dev>
Sun, 26 Jan 2025 18:14:06 +0000 (19:14 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 26 Jan 2025 18:14:06 +0000 (19:14 +0100)
Instead if no animation is playing simply set the type to nop

src/animation.s
src/defs.s

index 7f42acae5b7fde89f7a688f03059a4438ec75aba..6f482b7e16c9d26932d57b6eec5a6e3ebc8b3939 100644 (file)
@@ -43,14 +43,9 @@ anim_walk_down:
   ; to set itself to 0000 when the animation is finisehd 
   ; this is how anim_finished performs its check
 anim_update:
-  ld hl, curr_anim ; hl = anim_flags
-  ld a, [hl+] ; a = flag
-  and a, ANIM_FREADY
-  ret z
-
-  ld a, [hl]
-  ld hl, animation_table
   ld bc, curr_anim 
+  ld a, [bc]
+  ld hl, animation_table
   call call_tbl
 
   ret
index dc30b06bd9c5105cdc2b78d6219bd80f28f861dd..2285aed5fe19ef18a9fb4eee7df87dadf7ca1ef5 100644 (file)
 
   ; animation flags enum 
 .se 1
-  ; set if the animation is ready 
-  ; to be played 
-.de ANIM_FREADY, 1
+
 
 ; animation table entries 
 .se 0