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:
parent
a8ae6df13b
commit
25d782df6d
18 changed files with 20 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue