diff options
Diffstat (limited to 'src/engine/animator.c')
-rw-r--r-- | src/engine/animator.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/engine/animator.c b/src/engine/animator.c index e293eb1..71d0582 100644 --- a/src/engine/animator.c +++ b/src/engine/animator.c @@ -39,3 +39,11 @@ void hh_update_sprite(uint16_t *idx, hh_entity* in, vec_cor cam) { } } } + +void hh_show_quad(uint16_t *idx, hh_s_rendering* in) { + hh_s_ppu_loc_fam_entry temp = in->fam; + temp.position_y = CLAMP(in->fam.position_y, -16, HH_PPU_SCREEN_HEIGHT); + temp.position_x = CLAMP(in->fam.position_x, -16, HH_PPU_SCREEN_WIDTH); + hh_ppu_update_foreground(++*idx, temp); + temp.tilemap_index++; +} |