Arena works better now and I can give a list of sprites to work as fixtures in a scene.

This commit is contained in:
Zed A. Shaw 2025-10-19 00:47:28 -04:00
parent 59ba73baa0
commit 71e3c97cf0
8 changed files with 169 additions and 36 deletions

View file

@ -7,6 +7,13 @@
#include "gui/combat_ui.hpp"
#include "components.hpp"
struct AnimatedFixture {
textures::SpriteTexture st;
components::Animation anim;
std::string cell;
float scale;
};
namespace boss {
using std::shared_ptr;
using namespace DinkyECS;
@ -25,10 +32,7 @@ namespace boss {
components::Animation $boss_anim;
sf::Vector2f $boss_pos;
SpriteTexture $torch_left;
SpriteTexture $torch_right;
components::Animation $torch_left_anim;
components::Animation $torch_right_anim;
std::vector<AnimatedFixture> $fixtures;
UI(shared_ptr<World> world, Entity boss_id);