mirror of
https://github.com/csd4ni3l/ember-keeper.git
synced 2026-03-10 09:09:16 +01:00
Add replays, which replay all your previous runs and can also be disabled in settings
This commit is contained in:
@@ -20,11 +20,14 @@ class Statistics(arcade.gui.UIView):
|
||||
f"{level_num}_best_time": 9999
|
||||
for level_num in range(AVAILABLE_LEVELS)
|
||||
}
|
||||
|
||||
self.data.update({
|
||||
f"{level_num}_tries": 0
|
||||
for level_num in range(AVAILABLE_LEVELS)
|
||||
})
|
||||
|
||||
self.data["replays"] = []
|
||||
|
||||
self.total_tries = sum([self.data[f"{level_num}_tries"] for level_num in range(AVAILABLE_LEVELS)])
|
||||
|
||||
def on_show_view(self):
|
||||
|
||||
Reference in New Issue
Block a user