From 67a0f06d0388cb839a7419a1363fbfbb0372e653 Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 28 Aug 2025 02:30:17 +0200 Subject: [PATCH] trail on soft drop --- css/minimal.css | 2 +- js/game_logic.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/css/minimal.css b/css/minimal.css index 137604d..47e4f5f 100644 --- a/css/minimal.css +++ b/css/minimal.css @@ -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 { diff --git a/js/game_logic.js b/js/game_logic.js index 5ceba28..b5f4073 100644 --- a/js/game_logic.js +++ b/js/game_logic.js @@ -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