diff options
author | UnavailableDev <69792062+UnavailableDev@users.noreply.github.com> | 2023-04-03 11:39:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 11:39:08 +0200 |
commit | 68862666219c07ee62c9e59dd6866c1c7b26cc00 (patch) | |
tree | b0224b1516a362c27903efd4797f9bdf1a7eabc6 /src/engine/animator.h | |
parent | cc23564547b736125fe7e7869de277ea4d4455ab (diff) | |
parent | f761624a95de538bb2be8f9449ed0edb8ae067ad (diff) |
Merge pull request #49 from UnavailableDev/dev
Game stuff
Diffstat (limited to 'src/engine/animator.h')
-rw-r--r-- | src/engine/animator.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/engine/animator.h b/src/engine/animator.h new file mode 100644 index 0000000..10fa321 --- /dev/null +++ b/src/engine/animator.h @@ -0,0 +1,14 @@ +#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*, uint16_t start, uint16_t end, uint8_t step); + +/** @brief passively updates sprite*/ +uint16_t hh_update_sprite(uint16_t idx, hh_entity* in, vec_cor cam); |