minor fixes
This commit is contained in:
parent
f13962890f
commit
3f86f66a23
@ -147,7 +147,7 @@ class Matrix(Grid):
|
|||||||
self.speed = consts.INITIAL_SPEED * (0.8 - ((level - 1) * 0.007)) ** (level - 1)
|
self.speed = consts.INITIAL_SPEED * (0.8 - ((level - 1) * 0.007)) ** (level - 1)
|
||||||
self.fall_timer.start(self.speed)
|
self.fall_timer.start(self.speed)
|
||||||
if level > 15:
|
if level > 15:
|
||||||
self.lock_delay *= 0.9
|
self.lock_delay *= consts.AFTER_LVL_15_ACCELERATION
|
||||||
|
|
||||||
def empty_row(self):
|
def empty_row(self):
|
||||||
return [None for x in range(self.COLUMNS)]
|
return [None for x in range(self.COLUMNS)]
|
||||||
|
@ -38,6 +38,7 @@ ENTRY_DELAY = 80
|
|||||||
LINE_CLEAR_DELAY = 80
|
LINE_CLEAR_DELAY = 80
|
||||||
LOCK_DELAY = 500
|
LOCK_DELAY = 500
|
||||||
TEMPORARY_TEXT_DURATION = 1000
|
TEMPORARY_TEXT_DURATION = 1000
|
||||||
|
AFTER_LVL_15_ACCELERATION = 0.85
|
||||||
|
|
||||||
# Block Colors
|
# Block Colors
|
||||||
BLOCK_BORDER_COLOR = QtGui.QColor(0, 159, 218, 255)
|
BLOCK_BORDER_COLOR = QtGui.QColor(0, 159, 218, 255)
|
||||||
|
2
point.py
2
point.py
@ -7,7 +7,7 @@ from qt5 import QtCore
|
|||||||
from propertize import propertize, rename_attributes, snake_case
|
from propertize import propertize, rename_attributes, snake_case
|
||||||
|
|
||||||
|
|
||||||
@propertize("", "set")
|
@propertize("", "set_")
|
||||||
@rename_attributes(snake_case)
|
@rename_attributes(snake_case)
|
||||||
class Point(QtCore.QPoint):
|
class Point(QtCore.QPoint):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user