Move the compass to the left so that enemies don't have N on their head.

master
Zed A. Shaw 1 week ago
parent 2d790c5986
commit e020f25dd1
  1. 6
      main_ui.cpp

@ -76,7 +76,7 @@ namespace gui {
$rayview.set_position(RAY_VIEW_X, RAY_VIEW_Y);
$rayview.position_camera(player.x + 0.5, player.y + 0.5);
$overlay_ui.show_label("top", $compass[$compass_dir]);
$overlay_ui.show_label("top_left", $compass[$compass_dir]);
auto st = textures::get("down_the_well");
auto bounds = st.sprite->getLocalBounds();
@ -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.show_label("top", $compass[$compass_dir]);
$overlay_ui.show_label("top_left", $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.show_label("top", $compass[$compass_dir]);
$overlay_ui.show_label("top_left", $compass[$compass_dir]);
dirty();
}

Loading…
Cancel
Save