animation: Added new animation file
authorLukas Krickl <lukas@krickl.dev>
Sun, 26 Jan 2025 05:08:34 +0000 (06:08 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 26 Jan 2025 05:08:34 +0000 (06:08 +0100)
This will replace the existing manual playback of animations
with a more general system.

src/animation.s [new file with mode: 0644]
src/main.s

diff --git a/src/animation.s b/src/animation.s
new file mode 100644 (file)
index 0000000..1195698
--- /dev/null
@@ -0,0 +1,7 @@
+; animations can be queued  
+; each frame the latest animation is 
+; updated
+
+  ; updates the current animation 
+anim_update:
+  ret
index 9db5668c39ebc1b5161d529e75031ed4ef1a6849..bacf6d5d0760ec42442f0bf5689b157d55285933 100644 (file)
@@ -64,6 +64,7 @@ main:
 #include "collision.s"
 #include "actor.s"
 #include "audio.s"
+#include "animation.s"
 
 #include "tiles.inc"