refactor(entities): unifica loader d'animacio via AnimationComponent::fromYaml i elimina fps:
This commit is contained in:
1 parent
a779533d61
commit
b76a3eb1f3
21 files changed
+306
-231
No files matched your search
@@ -425,7 +425,7 @@ namespace {
|
||||
// els muros decoratius amb variants (stone, column, ...) l'usen.
|
||||
if (spawn.contains("frame")) {
|
||||
const int FRAME = spawn["frame"].get_value<int>();
|
||||
entity->setAnimation(AnimationComponent({FRAME}, 1.0F, false));
|
||||
entity->setAnimation(AnimationComponent::uniform({FRAME}, 1000.0F, false));
|
||||
}
|
||||
|
||||
manager.add(std::move(entity));
|
||||
|
||||
Reference in new issue
Block a user