|
|
@@ -62,6 +62,8 @@ const kitaList = Array (40).fill ().map (function (__, i) |
|
|
|
return _; |
|
|
|
}); |
|
|
|
|
|
|
|
const runawayGuitar = new Audio ('./assets/kita.wav'); |
|
|
|
|
|
|
|
let canvasX; |
|
|
|
let canvasY; |
|
|
|
let frame = 0; |
|
|
@@ -76,6 +78,11 @@ window.setInterval (() => reDraw (), 16); |
|
|
|
function |
|
|
|
preprocess () |
|
|
|
{ |
|
|
|
canvas.addEventListener ('click', function () |
|
|
|
{ |
|
|
|
runawayGuitar.play (); |
|
|
|
}); |
|
|
|
|
|
|
|
reDraw (); |
|
|
|
} |
|
|
|
|
|
|
|