Fixed a bug with score sorting.

This commit is contained in:
Storm Dragon committed 2025-02-14 20:46:38 -05:00
1 parent 97431c0c74
commit 6d2c6e04d8
1 file changed
+3
+3
View File
@@ -82,6 +82,9 @@ class Scoreboard:
'score': 0
})
# Sort high scores by score value in descending order
self.highScores.sort(key=lambda x: x['score'], reverse=True)
def get_score(self):
"""Get current score."""
return self.currentScore