From cf2420d54494afd0ebfe54e26ad17f052adc4643 Mon Sep 17 00:00:00 2001 From: adrien Date: Fri, 27 Mar 2026 08:29:13 +0100 Subject: [PATCH] spinend sound --- index.html | 1 + js/app.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index a08cd56..c1dc580 100644 --- a/index.html +++ b/index.html @@ -306,6 +306,7 @@ + diff --git a/js/app.js b/js/app.js index 7c2a512..0b4b7c4 100644 --- a/js/app.js +++ b/js/app.js @@ -131,9 +131,9 @@ let playerActions = { moveRight: () => matrix.piece.move(TRANSLATION.RIGHT)? playSound(move) : playSound(hit), - rotateClockwise: () => matrix.piece.rotate(ROTATION.CW)? playSound(rotate) : playSound(hit), + rotateClockwise: () => matrix.piece.rotate(ROTATION.CW)? playSound(rotate) : playSound(spinend), - rotateCounterclockwise: () => matrix.piece.rotate(ROTATION.CCW)? playSound(rotate) : playSound(hit), + rotateCounterclockwise: () => matrix.piece.rotate(ROTATION.CCW)? playSound(rotate) : playSound(spinend), softDrop: () => (matrix.piece.move(TRANSLATION.DOWN) && ++stats.score)? playSound(move) : playSound(floor),