Make enemies always twitch forward a bit, even if they have animation frames.

This commit is contained in:
Zed A. Shaw 2025-02-22 22:40:44 -05:00
parent 389690e5c3
commit 806f8e4e1a
2 changed files with 10 additions and 10 deletions

View file

@ -48,10 +48,10 @@ namespace components {
void Animation::step(sf::Vector2f& scale_out, sf::IntRect& rect_out) {
if(playing && current < frames) {
if(simple) {
scale_out.x += scale;
scale_out.y += scale;
} else {
scale_out.x += scale;
scale_out.y += scale;
if(!simple) {
rect_out.position.x += current * TEXTURE_WIDTH;
}