mirror of
https://github.com/csd4ni3l/ember-keeper.git
synced 2026-01-01 12:33:43 +01:00
Fix checkpoints, add restart delay, crop character images, make starting warmth less, add winning screen
This commit is contained in:
@@ -17,7 +17,7 @@ class Statistics(arcade.gui.UIView):
|
||||
self.data = json.load(file)
|
||||
else:
|
||||
self.data = {
|
||||
f"{level_num}_high_score": 9999
|
||||
f"{level_num}_best_time": 9999
|
||||
for level_num in range(AVAILABLE_LEVELS)
|
||||
}
|
||||
self.data.update({
|
||||
@@ -40,7 +40,7 @@ class Statistics(arcade.gui.UIView):
|
||||
|
||||
for level_num in range(AVAILABLE_LEVELS):
|
||||
self.box.add(arcade.gui.UILabel(f"Level {level_num + 1}", font_size=32))
|
||||
self.box.add(arcade.gui.UILabel(f"High Score: {self.data[f'{level_num}_high_score']}", font_size=24))
|
||||
self.box.add(arcade.gui.UILabel(f"High Score: {self.data[f'{level_num}_best_time']}", font_size=24))
|
||||
self.box.add(arcade.gui.UILabel(f"Tries: {self.data[f'{level_num}_tries']}", font_size=24))
|
||||
self.box.add(arcade.gui.UISpace(height=self.window.height / 15))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user