Entities in the world are now animated like before using the new animation system.
This commit is contained in:
parent
594be65f45
commit
779599f030
9 changed files with 85 additions and 79 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue