From 3f86f66a23cea4431507151f60dda82e8af4f220 Mon Sep 17 00:00:00 2001 From: adrienmalin <41926238+adrienmalin@users.noreply.github.com> Date: Sun, 19 Aug 2018 05:16:51 +0200 Subject: [PATCH] minor fixes --- Tetris2000.py | 2 +- consts.py | 1 + point.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Tetris2000.py b/Tetris2000.py index e81c22c..9efbed4 100644 --- a/Tetris2000.py +++ b/Tetris2000.py @@ -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)] diff --git a/consts.py b/consts.py index 377c979..1c8cfcc 100644 --- a/consts.py +++ b/consts.py @@ -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) diff --git a/point.py b/point.py index be97735..71f857c 100644 --- a/point.py +++ b/point.py @@ -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): """