Entities in the world are now animated like before using the new animation system.

This commit is contained in:
Zed A. Shaw 2026-02-25 12:13:43 -05:00
parent 594be65f45
commit 779599f030
9 changed files with 85 additions and 79 deletions

View file

@ -121,7 +121,7 @@ namespace animator {
}
}
void FSM::check_update() {
void FSM::check_changed() {
if($timer.getElapsedTime().toDuration() > 500ms) {
try {
auto mod_time = std::filesystem::last_write_time("assets/animation.json");
@ -339,7 +339,7 @@ int main(int argc, char* argv[]) {
while(main.active()) {
main.update();
main.render();
main.check_update();
main.check_changed();
main.handle_keyboard_mouse();
}