Bosses and other enemies now have a 2 frame animation, the first boss the Rat King now screams at you and attacks.

This commit is contained in:
Zed A. Shaw 2025-03-01 13:41:42 -05:00
parent b3b8cbbeee
commit 43835da88f
24 changed files with 35 additions and 22 deletions

View file

@ -56,8 +56,9 @@ namespace components {
float tick = twitching();
scale_out.x = std::lerp(scale_out.x, scale_out.x + scale, tick);
scale_out.y = std::lerp(scale_out.y, scale_out.y + scale, tick);
if(!simple) {
rect_out.position.x += current * TEXTURE_WIDTH;
rect_out.position.x += current * texture_width;
}
subframe += speed;