Fixed a bug with score sorting.
This commit is contained in:
parent
97431c0c74
commit
6d2c6e04d8
@ -82,6 +82,9 @@ class Scoreboard:
|
|||||||
'score': 0
|
'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):
|
def get_score(self):
|
||||||
"""Get current score."""
|
"""Get current score."""
|
||||||
return self.currentScore
|
return self.currentScore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user