improve lock

This commit is contained in:
adrienmalin 2019-02-17 18:48:23 +01:00
parent 8f23cc2e56
commit 5de180cc0e
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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():