Skip to content

Commit

Permalink
improved sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdugne committed Apr 17, 2024
1 parent 13b70de commit a0cc790
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fox/components/popup.gd
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func _physics_process(delta):
func close():
closing = true

if(__.Get('PRESS', Sound)):
if(__.Get('CONFIRMATION', Sound)):
Sound.play(Sound.CONFIRMATION)
elif(__.Get('PRESS', Sound)):
Sound.play(Sound.PRESS)

if(thisPopupPauseEngine):
Expand Down
1 change: 1 addition & 0 deletions fox/core/router.gd
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func _openScene(scene, options = {}):

if(currentScene.has_method('onOpen')):
currentScene.onOpen(options)

G.log('[🦊 Router]> ---------- entered:', str(currentScene.name))

# ------------------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions fox/core/sound.gd
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ func playMusicsInLoop(options):
var musicName = Sound.MUSICS[CURRENT_MUSIC_CURSOR]
await playMusic(musicName)

# CURRENT_MUSIC.seek(145) # to debug .ogg encoding

CURRENT_MUSIC.connect('finished', func():
stopMusic()
playMusicsInLoop(options)
)

Expand Down

0 comments on commit a0cc790

Please sign in to comment.