Added Player class

This commit is contained in:
Christian
2024-08-08 21:52:00 +02:00
parent a990714452
commit 5a0ebc7f5a
2 changed files with 10 additions and 2 deletions

View File

@@ -31,4 +31,10 @@ class GameObject(object):
def setsize(self, width, height):
self.width = width
self.height = height
self.height = height
class Player(GameObject):
def __init__(self, name, pos_x, pos_y, width, height, image=None) -> None:
super().__init__(name, pos_x, pos_y, width, height, image)