ammo counter
This commit is contained in:
parent
a9e1dd70d0
commit
eb68edfb03
2 changed files with 60 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue