The whole boss fight scene is now configurable with json.

This commit is contained in:
Zed A. Shaw 2025-09-27 11:58:44 -04:00
parent 06f6098281
commit 06a174040f
5 changed files with 29 additions and 43 deletions

View file

@ -6,6 +6,10 @@
#include "textures.hpp"
#include "gui/combat_ui.hpp"
namespace components {
struct BossFight;
}
namespace boss {
using std::shared_ptr;
using namespace DinkyECS;
@ -14,6 +18,7 @@ namespace boss {
struct UI {
shared_ptr<World> $world = nullptr;
Entity $boss_id = NONE;
components::BossFight& $scene;
gui::CombatUI $combat_ui;
SpriteTexture $boss_sprite;
SpriteTexture $player_sprite;