Add first background music, always move focus back to the command line

This commit is contained in:
blinry 2021-02-04 16:11:56 +01:00
parent 13dc516edf
commit b9b32c66e4
11 changed files with 90 additions and 17 deletions
scenes

View file

@ -66,7 +66,7 @@ func load_level(level_id):
$Menu/CLIBadge.active = true
$Menu/CLIBadge.sparkling = false
AudioServer.set_bus_mute(AudioServer.get_bus_index("Master"), true)
AudioServer.set_bus_mute(AudioServer.get_bus_index("SFX"), true)
levels.chapters[game.current_chapter].levels[game.current_level].construct()
@ -112,7 +112,7 @@ func load_level(level_id):
add_child(t)
t.start()
yield(t, "timeout")
AudioServer.set_bus_mute(AudioServer.get_bus_index("Master"), false)
AudioServer.set_bus_mute(AudioServer.get_bus_index("SFX"), false)
# FIXME: Need to clean these up when switching levels somehow.
# chapter_select.select(game.current_chapter)
@ -204,6 +204,8 @@ func update_repos():
var repo = repositories[r]
repo.update_everything()
file_browser.update()
input.grab_focus()
func toggle_cards():
cards.visible = not cards.visible