More boss fight UI done and a bit of ambient sound working.
This commit is contained in:
parent
64807174c0
commit
a0c0308461
12 changed files with 111 additions and 58 deletions
|
@ -20,6 +20,7 @@ namespace gui {
|
|||
$map_ui($level),
|
||||
$combat_ui($level),
|
||||
$status_ui($level),
|
||||
$boss_fight_ui($level),
|
||||
$font{FONT_FILE_NAME}
|
||||
{
|
||||
}
|
||||
|
@ -246,6 +247,10 @@ namespace gui {
|
|||
sf::Vector2f pos = $window.mapPixelToCoords(mouse->position);
|
||||
if(in_state(State::NEXT_LEVEL)) {
|
||||
$boss_fight_ui.mouse(pos.x, pos.y);
|
||||
|
||||
if($boss_fight_ui.boss_dead()) {
|
||||
event(Event::STAIRS_DOWN);
|
||||
}
|
||||
} else {
|
||||
$combat_ui.$gui.mouse(pos.x, pos.y);
|
||||
$status_ui.$gui.mouse(pos.x, pos.y);
|
||||
|
@ -415,6 +420,7 @@ namespace gui {
|
|||
$combat_ui.update_level($level);
|
||||
$map_ui.update_level($level);
|
||||
$main_ui.update_level($level);
|
||||
$boss_fight_ui.update_level($level);
|
||||
|
||||
run_systems();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue