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
|
@ -55,7 +55,7 @@ namespace gui {
|
|||
$rayview.$dir_x, $rayview.$dir_y,
|
||||
VSYNC, FRAME_LIMIT, DEBUG_BUILD);
|
||||
|
||||
$overlay_ui.update_text("top_left", stats);
|
||||
$overlay_ui.show_text("top_left", stats);
|
||||
}
|
||||
|
||||
void MainUI::draw_blood() {
|
||||
|
@ -115,7 +115,7 @@ namespace gui {
|
|||
auto debug = $level.world->get_the<Debug>();
|
||||
if(debug.FPS) draw_stats();
|
||||
|
||||
draw_blood();
|
||||
// draw_blood();
|
||||
}
|
||||
|
||||
bool MainUI::play_rotate() {
|
||||
|
@ -140,7 +140,7 @@ namespace gui {
|
|||
void MainUI::plan_rotate(int dir) {
|
||||
// -1 is left, 1 is right
|
||||
$compass_dir = ($compass_dir + dir) % $compass.size();
|
||||
$overlay_ui.update_label("top", $compass[$compass_dir]);
|
||||
$overlay_ui.show_label("top", $compass[$compass_dir]);
|
||||
$camera.plan_rotate($rayview, dir);
|
||||
}
|
||||
|
||||
|
@ -166,7 +166,7 @@ namespace gui {
|
|||
$rayview.position_camera(player.x + 0.5, player.y + 0.5);
|
||||
|
||||
$compass_dir = 0;
|
||||
$overlay_ui.update_label("top", $compass[$compass_dir]);
|
||||
$overlay_ui.show_label("top", $compass[$compass_dir]);
|
||||
dirty();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue