Added revisionshash for debbugging
This commit is contained in:
@@ -42,6 +42,7 @@ class Player(GameObject):
|
||||
self.screen = screen
|
||||
self.points = 0
|
||||
self.lifes = 2
|
||||
self.kills = 0
|
||||
|
||||
def handle_input(self, event:pygame.event.EventType):
|
||||
if(event.type == pygame.KEYDOWN and event.key == pygame.K_LEFT):
|
||||
@@ -171,5 +172,13 @@ class Projectile(GameObject):
|
||||
pass
|
||||
|
||||
class Item(GameObject):
|
||||
def __init__(self, name, pos_x, pos_y, width, height, image=None) -> None:
|
||||
super().__init__(name, pos_x, pos_y, width, height, image)
|
||||
|
||||
class item_extra_life(Item):
|
||||
def __init__(self, name, pos_x, pos_y, width, height, image=None) -> None:
|
||||
super().__init__(name, pos_x, pos_y, width, height, image)
|
||||
|
||||
class Weapons(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