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

@ -47,10 +47,8 @@ namespace gui {
}
void BossFightUI::configure_background() {
// FIX ME
// auto& config = $world->get_the<components::GameConfig>();
std::string boss_bg = "boss_fight_background";
$boss_background = textures::get(boss_bg);
auto& boss = $world->get<components::BossFight>($boss_id);
$boss_background = textures::get(boss.background);
$boss_background.sprite->setPosition({BOSS_VIEW_X, BOSS_VIEW_Y});
$status.world().set_the<Background>({$status.$parser});
}