Added points system with scoreboard.
This commit is contained in:
@@ -24,6 +24,7 @@ class CoffinObject(Object):
|
||||
if not self.isBroken:
|
||||
self.isBroken = True
|
||||
play_sound(self.sounds['coffin_shatter'])
|
||||
self.level.levelScore += 500
|
||||
self.level.player.stats.update_stat('Coffins broken', 1)
|
||||
|
||||
# Stop the ongoing coffin sound
|
||||
|
Reference in New Issue
Block a user