diff options
Diffstat (limited to 'apps/plugins')
| -rw-r--r-- | apps/plugins/boomshine.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/boomshine.lua b/apps/plugins/boomshine.lua index 9c8b559..74f7f2a 100644 --- a/apps/plugins/boomshine.lua +++ b/apps/plugins/boomshine.lua @@ -274,7 +274,11 @@ while true do end end -display_message(string.format("You made it till level %d with %d points!", idx, highscore)) +if idx > #levels then + display_message(string.format("You finished the game with %d points!", highscore)) +else + display_message(string.format("You made it till level %d with %d points!", idx, highscore)) +end -- Restore user backlight settings rb.backlight_use_settings() |