Refactored the animation so I can normalize it to one api. Next is to create the concept of a temporary entity that represents a transitive effect.
This commit is contained in:
parent
0afaa20c1d
commit
8384b11993
10 changed files with 123 additions and 23 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "textures.hpp"
|
||||
#include "inventory.hpp"
|
||||
#include "systems.hpp"
|
||||
#include "animation.hpp"
|
||||
|
||||
using namespace fmt;
|
||||
using namespace components;
|
||||
|
|
@ -100,6 +101,7 @@ DinkyECS::Entity WorldBuilder::configure_entity_in_map(DinkyECS::World &world, j
|
|||
}
|
||||
|
||||
System::set_position(world, $collision, item, {pos.x, pos.y});
|
||||
animation::configure(world, item);
|
||||
|
||||
return item;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue