feat: add collision logic between entities
This commit is contained in:
@@ -16,7 +16,9 @@ class PieceGenerator:
|
||||
if len(cls.__bucket) == 0:
|
||||
cls.__generate_bucket()
|
||||
|
||||
return Piece(cls.__get_piece_shape(cls.__bucket.pop()), position, cls.__get_piece_color())
|
||||
border_color = ConfigurationManager.configuration["color"]["border"] # TODO abstract color call to config out?
|
||||
|
||||
return Piece(cls.__get_piece_shape(cls.__bucket.pop()), position, cls.__get_piece_color(), border_color)
|
||||
|
||||
@classmethod
|
||||
def __generate_bucket(cls) -> None:
|
||||
|
||||
Reference in New Issue
Block a user