BossFightUI now loads out of LevelManager and is treated like a normal level. This also adds a prototype for a different kind of 'stationary' boss to prototype its motions.

This commit is contained in:
Zed A. Shaw 2025-03-04 09:31:15 -05:00
parent 6e8aa48332
commit eb8fb82837
9 changed files with 35 additions and 10 deletions

View file

@ -39,7 +39,7 @@ shared_ptr<gui::BossFightUI> LevelManager::create_bossfight(shared_ptr<DinkyECS:
dbc::check(prev_world != nullptr, "Starter world for boss fights can't be null.");
auto world = clone_load_world(prev_world);
auto& config = prev_world->get_the<GameConfig>();
auto& boss_data = config.bosses["RAT_KING"];
auto& boss_data = config.bosses["DEVILS_FINGERS"];
auto boss_id = world->entity();
components::configure_entity($components, *world, boss_id, boss_data["components"]);