ammo counter

This commit is contained in:
Aron Petau 2025-10-12 11:56:02 +02:00
parent a9e1dd70d0
commit eb68edfb03
2 changed files with 60 additions and 4 deletions

View file

@ -9,6 +9,7 @@ class Player:
self.rect = pygame.Rect(x, y, PLAYER_SIZE, PLAYER_SIZE)
self.dir = "up"
self.image = image
self.ammo = 5 # Startwert für Munition
def move(self, keys, map_w, map_h):
if not self.alive: