feat: implement line completion logic
This commit is contained in:
@@ -10,7 +10,7 @@ from util.ConfigurationManager import ConfigurationManager
|
||||
'''
|
||||
class Piece(Entity):
|
||||
|
||||
GRAVITY = 800 # A move down every 800 ms
|
||||
GRAVITY = 300 # A move down every 600 ms
|
||||
|
||||
def __init__(self, shape: Tuple, position: Tuple, color: str, border_color: str):
|
||||
super().__init__(self.__get_points(shape, position), color, border_color)
|
||||
@@ -19,7 +19,7 @@ class Piece(Entity):
|
||||
self.previous_points = None
|
||||
self.previous_center = None
|
||||
|
||||
def update(self, elapsed_time: int, well: Entity, stack: Entity):
|
||||
def update(self, elapsed_time: int, well: Entity, stack: Entity) -> None:
|
||||
super().update(elapsed_time)
|
||||
|
||||
tile_size = ConfigurationManager.configuration["engine"]["tile-size"]
|
||||
|
||||
Reference in New Issue
Block a user