mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-05 05:02:02 +02:00
Add first background music, always move focus back to the command line
This commit is contained in:
parent
13dc516edf
commit
b9b32c66e4
11 changed files with 90 additions and 17 deletions
scenes
|
@ -63,3 +63,12 @@ func reload():
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
func toggle_music():
|
||||
var music = game.find_node("Music")
|
||||
if music.volume_db > -20:
|
||||
music.volume_db -= 100
|
||||
else:
|
||||
music.volume_db += 100
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue