Added revisionshash for debbugging

This commit is contained in:
Christian
2024-08-12 15:19:50 +02:00
parent 04639f6778
commit aece5e9a2e
2 changed files with 42 additions and 2 deletions

View File

@@ -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)