Skip to content

Commit

Permalink
newgame
Browse files Browse the repository at this point in the history
  • Loading branch information
eguneys committed Jan 3, 2024
1 parent fd75ea7 commit 2e656e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
Binary file added public/audio/new_game.wav
Binary file not shown.
1 change: 1 addition & 0 deletions src/solitaire.ts
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,7 @@ export class SolitairePlay extends Play {
game_over_dialog.dispose()
game_over_dialog = undefined
}
Sound.play('new_game')
}

const on_game_over = (_: Settings, score: number) => {
Expand Down
1 change: 1 addition & 0 deletions src/sound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function load_audio(path: string): HTMLMediaElement {

let names = [
'Win',
'new_game',
'auto_flip',
'drag1', 'drag2', 'drag3',
'cancel', 'drop', 'hit', 'recycle', 'undo2'
Expand Down

0 comments on commit 2e656e1

Please sign in to comment.