feat: implement line completion logic

This commit is contained in:
Giovani Rodriguez
2021-06-10 14:01:26 -04:00
parent 8c8a1e6de0
commit f003cb2d2e
3 changed files with 48 additions and 4 deletions

View File

@@ -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"]