diff --git a/Readme.md b/Readme.md index e16c72e..e3d78b2 100644 --- a/Readme.md +++ b/Readme.md @@ -163,6 +163,12 @@ There are many possible perks left to implement : The "engine" could be better +- add mouse lock / hide curso options +- offline mode with service worker +- add pwe manifest +- experiment with showing the combo somewhere else, maybe top center, maybe instead of score. +- make coins look,sound and roll like coins +- limit GC by reusing coins and particles - convert captures to mp4 unsing ffmpeg wasm because reddit refuses webm files - few puck bounces = more choices / upgrades - disable zooming (for ios double tap) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index da82dc7..e777c77 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -11,8 +11,8 @@ android { applicationId = "me.lecaro.breakout" minSdk = 21 targetSdk = 34 - versionCode = 29009918 - versionName = "29009918" + versionCode = 29009984 + versionName = "29009984" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { useSupportLibrary = true diff --git a/app/src/main/assets/game.js b/app/src/main/assets/game.js index 2988d68..4b231ec 100644 --- a/app/src/main/assets/game.js +++ b/app/src/main/assets/game.js @@ -1371,8 +1371,7 @@ function gameOver(title, intro) {
` }) - - const previousUnlockAt = list.findLast(u => u.threshold <= endTs)?.threshold || 0 + const previousUnlockAt = findLast(list, u => u.threshold <= endTs)?.threshold || 0 const nextUnlock = list.find(u => u.threshold > endTs) if (nextUnlock) { @@ -3009,6 +3008,14 @@ function captureFileName(ext) { + function findLast(arr, predicate){ + let i = arr.length + while(--i) + if(predicate(arr[i],i,arr)){ + return arr[i] + } + + } diff --git a/app/src/main/assets/index.html b/app/src/main/assets/index.html index 0e31189..f6e586d 100644 --- a/app/src/main/assets/index.html +++ b/app/src/main/assets/index.html @@ -8,17 +8,17 @@ />