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

@@ -66,6 +66,8 @@ class Player:
attackDuration=200 # 200ms attack duration
))
self.scoreboard = Scoreboard()
def should_play_footstep(self, currentTime):
"""Check if it's time to play a footstep sound"""
return (self.distanceSinceLastStep >= self.get_step_distance() and