Added points system with scoreboard.

This commit is contained in:
Storm Dragon
2025-02-14 21:39:32 -05:00
parent 03b59256b2
commit 1d60c58532
7 changed files with 45 additions and 4 deletions

View File

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