trail on soft drop

This commit is contained in:
2025-08-28 02:30:17 +02:00
parent 2f1ec2a6f7
commit 67a0f06d03
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ tr.matrix td:not(.mino) {
@keyframes trail-animation {
from {
background-color: #ceffff10;
background-color: #ceffff08;
filter: saturate(50%) brightness(110%);
}
to {

View File

@@ -328,7 +328,7 @@ class Tetromino {
let success = this.canMove(translation, rotation)
if (success) {
scheduler.clearTimeout(lockDown)
matrix.drawPiece(this, hardDropped? "trail-animation" : "")
matrix.drawPiece(this, translation == TRANSLATION.DOWN? "trail-animation" : "")
this.center = success.center
if (rotation) this.facing = success.facing
this.lastRotation = rotation