From 5de180cc0e5095432a865df2920a1f41ace62a52 Mon Sep 17 00:00:00 2001 From: adrienmalin <41926238+adrienmalin@users.noreply.github.com> Date: Sun, 17 Feb 2019 18:48:23 +0100 Subject: [PATCH] improve lock --- src/main/python/consts.py | 2 +- src/main/python/game_gui.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/python/consts.py b/src/main/python/consts.py index 10955e3..a5d7ad0 100644 --- a/src/main/python/consts.py +++ b/src/main/python/consts.py @@ -34,7 +34,7 @@ ANIMATION_DELAY = 67 INITIAL_SPEED = 1000 ENTRY_DELAY = 80 LINE_CLEAR_DELAY = 80 -LOCK_DELAY = 500 +LOCK_DELAY = 1000 TEMPORARY_TEXT_DURATION = 1000 AFTER_LVL_15_ACCELERATION = 0.9 diff --git a/src/main/python/game_gui.py b/src/main/python/game_gui.py index b78188e..bb9b503 100644 --- a/src/main/python/game_gui.py +++ b/src/main/python/game_gui.py @@ -278,6 +278,7 @@ class Matrix(Grid): elif action == s.SOFT_DROP: if self.piece.soft_drop(): + self.lock_wait() self.drop_signal.emit(1) self.wall_hit = False else: @@ -304,6 +305,9 @@ class Matrix(Grid): def lock_start(self): if not self.lock_timer.isActive(): self.lock_timer.start(self.lock_delay) + for mino in self.piece.minoes: + mino.shine(1) + self.update() def lock_wait(self): if self.lock_timer.isActive():