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:
parent
6e8aa48332
commit
eb8fb82837
9 changed files with 35 additions and 10 deletions
|
@ -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});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue