Start and stop some sounds and add a little bit of reverb to sounds so they fit the 'dungeon' theme.

This commit is contained in:
Zed A. Shaw 2025-02-28 10:48:45 -05:00
parent a8ae6df13b
commit 25d782df6d
18 changed files with 20 additions and 2 deletions

View file

@ -123,6 +123,8 @@ namespace gui {
void FSM::IDLE(Event ev) {
using enum Event;
sound::stop("walk");
switch(ev) {
case QUIT:
$window.close();
@ -164,7 +166,7 @@ namespace gui {
dbc::log("Nothing to close.");
break;
case STAIRS_DOWN:
// $main_ui.show_level();
sound::stop("ambient");
state(State::NEXT_LEVEL);
break;
case STOP_COMBAT:
@ -181,6 +183,7 @@ namespace gui {
switch(ev) {
case STAIRS_DOWN:
sound::play("ambient");
next_level();
state(State::IDLE);
default: