How can I turn off the sound of react-chrome-dino?
dooli1971039 opened this issue · 2 comments
dooli1971039 commented
When I played the game and navigate to the different screen, I still hear the game sound when I press the space bar. How can I fix it? Is there a mute property?
Svyat0y commented
I found this library because I needed this game, but I encountered the same problem. if there are any solutions, please let me know! thx
ReallyLiri commented
The solution I hacked is to edit DinoScript.js and find the following snippet:
playSound:function(t){if(t)
and replace it with
playSound:function(t){if(false)