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:
parent
b3b8cbbeee
commit
43835da88f
24 changed files with 35 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue