diff --git a/.gitignore b/.gitignore index 7a9816f..034b495 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ local.properties node_modules *.zip +app/release/app-release.aab \ No newline at end of file diff --git a/app/release/app-release.aab b/app/release/app-release.aab index 28e0344..49c7dc1 100644 Binary files a/app/release/app-release.aab and b/app/release/app-release.aab differ diff --git a/app/src/main/assets/game.js b/app/src/main/assets/game.js index 71d5947..f47530d 100644 --- a/app/src/main/assets/game.js +++ b/app/src/main/assets/game.js @@ -1390,12 +1390,19 @@ function addToTotalScore(points) { } } +function addToTotalPlayTime(ms) { + try { + localStorage.setItem('breakout_71_total_play_time', JSON.stringify(JSON.parse(localStorage.getItem('breakout_71_total_play_time') || '0') + ms)) + } catch (e) { + } +} + function gameOver(title, intro) { if (!running) return; pause(true) stopRecording() - +addToTotalPlayTime(runStatistics.runTime) runStatistics.max_level = currentLevel+1 let animationDelay = -300 @@ -2639,7 +2646,7 @@ async function openSettingsPanel() { }, { text: 'Unlocks', - help: "See and try what you've unlocked", + help: "See perks and levels you unlocked", async value() { const ts = getTotalScore() const actions = [...upgrades diff --git a/app/src/main/assets/index.html b/app/src/main/assets/index.html index a1399d2..d06d3f1 100644 --- a/app/src/main/assets/index.html +++ b/app/src/main/assets/index.html @@ -8,6 +8,7 @@ />