This commit is contained in:
2026-01-31 21:47:28 +01:00
parent 9caa2ca992
commit e449efe1ba

2
app.js
View File

@@ -116,7 +116,7 @@ class Sprite {
class Cannon extends Sprite { class Cannon extends Sprite {
constructor(canvasCtx, note) { constructor(canvasCtx, note) {
let sharp = [1, 3, 6, 8, 10].includes(note % 12) let sharp = [1, 3, 6, 8, 10].includes(note % 12)
//super(canvasCtx, "cannon.png", 34 * (note - FIRST_NOTE) + 66, sharp? 418:424, 11, 26, 4) // super(canvasCtx, "cannon.png", 34 * (note - FIRST_NOTE) + 66, sharp? 418:444, 11, 26, 4)
super(canvasCtx, "cannon.png", 34 * (note - FIRST_NOTE) + 66, 454 - 20 * (note % 3), 11, 26, 4) super(canvasCtx, "cannon.png", 34 * (note - FIRST_NOTE) + 66, 454 - 20 * (note % 3), 11, 26, 4)
this.note = note this.note = note
this.key = keyMap[note - FIRST_NOTE]?.toUpperCase() || "" this.key = keyMap[note - FIRST_NOTE]?.toUpperCase() || ""