mirror of
https://github.com/kristoferssolo/Tetris.git
synced 2025-10-21 20:00:35 +00:00
adjust game settings
This commit is contained in:
parent
491886b134
commit
48d5e1d705
@ -299,8 +299,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.75
|
self.initial_block_speed *= 0.5
|
||||||
self.increased_block_speed *= 0.75
|
self.increased_block_speed *= 0.5
|
||||||
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:
|
||||||
|
|||||||
@ -24,7 +24,7 @@ class Game:
|
|||||||
pos: Vec2 = Vec2(padding, padding)
|
pos: Vec2 = Vec2(padding, padding)
|
||||||
offset: Vec2 = Vec2(columns // 2, -1)
|
offset: Vec2 = Vec2(columns // 2, -1)
|
||||||
initial_speed: float | int = 300
|
initial_speed: float | int = 300
|
||||||
movment_delay: int = 150
|
movment_delay: int = 130
|
||||||
rotation_delay: int = 200
|
rotation_delay: int = 200
|
||||||
drop_delay: int = 200
|
drop_delay: int = 200
|
||||||
score: dict[int, int] = {1: 40, 2: 100, 3: 300, 4: 1200}
|
score: dict[int, int] = {1: 40, 2: 100, 3: 300, 4: 1200}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user