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:
Zed A. Shaw 2025-09-11 14:18:52 -04:00
parent 0afaa20c1d
commit 8384b11993
10 changed files with 123 additions and 23 deletions

View file

@ -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;
}