More sounds added. Warning for edge of grave added, but it's not quite right yet.
This commit is contained in:
@@ -19,7 +19,7 @@ class Player:
|
||||
# Inventory system
|
||||
self.inventory = []
|
||||
self.collectedItems = []
|
||||
self.coins = 0
|
||||
self._coins = 0
|
||||
|
||||
# Combat related attributes
|
||||
self.weapons = []
|
||||
@@ -103,6 +103,10 @@ class Player:
|
||||
if self._lives > 0:
|
||||
self._health = 10 # Reset health if we still have lives
|
||||
|
||||
def get_coins(self):
|
||||
"""Get remaining coins"""
|
||||
return self._coins
|
||||
|
||||
def get_lives(self):
|
||||
"""Get remaining lives"""
|
||||
return self._lives
|
||||
|
Reference in New Issue
Block a user