Added Player class
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user