Added Player class that handle playerobject
This commit is contained in:
1 parent
f77433d5f4
commit
40839589f0
2 files changed
+24
-19
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user