Added Player class that handle playerobject

This commit is contained in:
2024-01-07 22:02:08 +01:00
parent f77433d5f4
commit 40839589f0
2 changed files with 24 additions and 19 deletions

View File

@@ -209,4 +209,9 @@ class Block(GameObject):
print(super().get_position())
def get_score(self) -> int:
return self.__score
return self.__score
class Player(GameObject):
#Later handles the Player-Gameobject
def __init__(self, name: str, surface, mainscreensize: tuple, posx_init: int = 0, posy_init: int = 0, move_speed: int = 0, is_player: bool = False, is_rect: bool = True, rect_size: tuple = (10, 10)) -> None:
super().__init__(name, surface, mainscreensize, posx_init, posy_init, move_speed, is_player, is_rect, rect_size)