minor fixes

This commit is contained in:
adrienmalin 2018-08-19 05:16:51 +02:00
parent f13962890f
commit 3f86f66a23
3 changed files with 3 additions and 2 deletions

View File

@ -147,7 +147,7 @@ class Matrix(Grid):
self.speed = consts.INITIAL_SPEED * (0.8 - ((level - 1) * 0.007)) ** (level - 1)
self.fall_timer.start(self.speed)
if level > 15:
self.lock_delay *= 0.9
self.lock_delay *= consts.AFTER_LVL_15_ACCELERATION
def empty_row(self):
return [None for x in range(self.COLUMNS)]

View File

@ -38,6 +38,7 @@ ENTRY_DELAY = 80
LINE_CLEAR_DELAY = 80
LOCK_DELAY = 500
TEMPORARY_TEXT_DURATION = 1000
AFTER_LVL_15_ACCELERATION = 0.85
# Block Colors
BLOCK_BORDER_COLOR = QtGui.QColor(0, 159, 218, 255)

View File

@ -7,7 +7,7 @@ from qt5 import QtCore
from propertize import propertize, rename_attributes, snake_case
@propertize("", "set")
@propertize("", "set_")
@rename_attributes(snake_case)
class Point(QtCore.QPoint):
"""