aboutsummaryrefslogtreecommitdiff
path: root/src/engine/animator.h
blob: 3ace959471bac6e71f5cf836b3ca567edc2413c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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 */
void hh_update_sprite(uint16_t* idx, hh_entity* in, vec_cor cam);

/** @brief always renders on same screen position */
void hh_show_quad(uint16_t *idx, hh_s_rendering* in);