diff --git a/Readme.md b/Readme.md index e3d78b2..8f428e5 100644 --- a/Readme.md +++ b/Readme.md @@ -163,9 +163,17 @@ There are many possible perks left to implement : The "engine" could be better -- add mouse lock / hide curso options +- add pointer lock when game is running (lock to play area )https://mdn.github.io/dom-examples/pointer-lock/ +- hide cursor options - offline mode with service worker - add pwe manifest +- keyboard support + - start/stop with space + - left and right arrow for moving the puck + - up down for choosing menu entry + - space to click entry + - escape to close menu +- see how to do fullscreen on ios, or at least explain to do aA/hide toolbars - 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 diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e777c77..dc6d977 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 = 29009984 - versionName = "29009984" + versionCode = 29010003 + versionName = "29010003" 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 4b231ec..8feb4df 100644 --- a/app/src/main/assets/game.js +++ b/app/src/main/assets/game.js @@ -480,7 +480,7 @@ const upgrades = [ "id": "slow_down", "name": "Slower ball", "max": 2, - "help": "Slows down the ball", + "help": "slow down the ball", extraLevelsHelp: `Make it even slower` }, { @@ -1887,7 +1887,7 @@ function render() { if (isSettingOn("mobile-mode")) { ctx.fillRect(offsetXRoundedDown, gameZoneHeight, gameZoneWidthRoundedUp, 1); if (!running) { - drawText(ctx, "Keep pressing here to play", puckColor, puckHeight, { + drawText(ctx, "Press and hold here to play", puckColor, puckHeight, { x: canvas.width / 2, y: gameZoneHeight + (canvas.height - gameZoneHeight) / 2, }); } @@ -2612,7 +2612,8 @@ Click an item above to start a test run with it. ...optionsList, - (document.fullscreenEnabled || document.webkitFullscreenEnabled) && (document.fullscreenElement !== null ? { + (document.fullscreenEnabled || document.webkitFullscreenEnabled) && + (document.fullscreenElement !== null ? { text: "Exit Fullscreen", help: "Might not work on some machines", value() { diff --git a/app/src/main/assets/index.html b/app/src/main/assets/index.html index f6e586d..271d34f 100644 --- a/app/src/main/assets/index.html +++ b/app/src/main/assets/index.html @@ -8,17 +8,17 @@ /> Breakout 71 - + - + - - + +