diff --git a/pinball.js b/pinball.js index ae54669..7bbe376 100644 --- a/pinball.js +++ b/pinball.js @@ -1095,7 +1095,8 @@ function ballCollides(){ if(soundpos!==lastsoundpos_bump){ playSound(targetsound,bumperCount===0); } - + lastsoundpos_bump=soundpos; + var direction = (nSpeed[0]*normal[1]-nSpeed[1]*normal[0]); /* if (direction<0){ console.log("left"); diff --git a/play_inlined.txt b/play_inlined.txt index a0fdd62..66b1b05 100644 --- a/play_inlined.txt +++ b/play_inlined.txt @@ -151,7 +151,7 @@ hr{ -