Treballant en la càrrega de animacions desde fitxers

This commit is contained in:
2024-10-17 21:02:28 +02:00
parent 8e8346b2ab
commit 808f1595e9
2 changed files with 141 additions and 153 deletions

View File

@@ -17,6 +17,8 @@ struct Animation
bool completed; // Indica si ha finalizado la animación
int current_frame; // Frame actual
int counter; // Contador para las animaciones
Animation() : name(std::string()), speed(5), loop(0), completed(false), current_frame(0), counter(0) {}
};
class AnimatedSprite : public MovingSprite