chg: usr: add sound when the game start #10
This commit is contained in:
@@ -49,6 +49,7 @@ export const GameProvider = ({ children }) => {
|
||||
mine: new Howl({ src: ['/sound/mine.mp3'] }),
|
||||
warning: new Howl({ src: ['/sound/warning.mp3'] }),
|
||||
won: new Howl({ src: ['/sound/won.mp3'] }),
|
||||
starting: new Howl({ src: ['/sound/starting.mp3'] }),
|
||||
});
|
||||
|
||||
/** Sync helpers (keep ref + state in lockstep) */
|
||||
@@ -269,6 +270,8 @@ export const GameProvider = ({ children }) => {
|
||||
makeGameEndIfItEnds, resignProcess,
|
||||
/** UI action */
|
||||
onBombToggle,
|
||||
/** Sounds */
|
||||
sounds,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user