mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2026-03-22 00:36:20 +00:00
chore(game): adjust block speed
This commit is contained in:
@@ -309,8 +309,8 @@ class Tetris(BaseScreen):
|
|||||||
def _level_up(self) -> None:
|
def _level_up(self) -> None:
|
||||||
"""Level up."""
|
"""Level up."""
|
||||||
self.level += 1
|
self.level += 1
|
||||||
self.initial_block_speed *= 0.3
|
self.initial_block_speed *= 0.8 # the larger the multiplier, the slower the game
|
||||||
self.increased_block_speed *= 0.3
|
self.increased_block_speed *= 0.8
|
||||||
self.timers.vertical.duration = self.initial_block_speed
|
self.timers.vertical.duration = self.initial_block_speed
|
||||||
|
|
||||||
def _draw_components(self) -> None:
|
def _draw_components(self) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user