trail on soft drop
This commit is contained in:
@@ -115,7 +115,7 @@ tr.matrix td:not(.mino) {
|
|||||||
|
|
||||||
@keyframes trail-animation {
|
@keyframes trail-animation {
|
||||||
from {
|
from {
|
||||||
background-color: #ceffff10;
|
background-color: #ceffff08;
|
||||||
filter: saturate(50%) brightness(110%);
|
filter: saturate(50%) brightness(110%);
|
||||||
}
|
}
|
||||||
to {
|
to {
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ class Tetromino {
|
|||||||
let success = this.canMove(translation, rotation)
|
let success = this.canMove(translation, rotation)
|
||||||
if (success) {
|
if (success) {
|
||||||
scheduler.clearTimeout(lockDown)
|
scheduler.clearTimeout(lockDown)
|
||||||
matrix.drawPiece(this, hardDropped? "trail-animation" : "")
|
matrix.drawPiece(this, translation == TRANSLATION.DOWN? "trail-animation" : "")
|
||||||
this.center = success.center
|
this.center = success.center
|
||||||
if (rotation) this.facing = success.facing
|
if (rotation) this.facing = success.facing
|
||||||
this.lastRotation = rotation
|
this.lastRotation = rotation
|
||||||
|
|||||||
Reference in New Issue
Block a user