improve lock
This commit is contained in:
parent
8f23cc2e56
commit
5de180cc0e
@ -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
|
||||
|
||||
|
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user