aboutsummaryrefslogtreecommitdiff
path: root/src/engine/animator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/animator.h')
-rw-r--r--src/engine/animator.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/engine/animator.h b/src/engine/animator.h
new file mode 100644
index 0000000..3b015a6
--- /dev/null
+++ b/src/engine/animator.h
@@ -0,0 +1,15 @@
+#pragma once
+#include <stdint.h>
+
+#include "ppu/types.h"
+#include "engine/types.h"
+#include "engine/entity.h"
+
+/** @brief flashes sprite white, also needs to be called next frame */
+void hh_animate_hit(hh_s_rendering*, bool hit);
+/** @brief updates current animation frame */
+void hh_animate(hh_s_rendering*, hh_idx_t start, hh_idx_t end, uint8_t step);
+
+/** @brief passively updates sprite*/
+void hh_update_sprite(hh_entity* in);
+