From 3a6254e3f93956c03cfbb7b54fbbe7ece9aacf42 Mon Sep 17 00:00:00 2001 From: Ramkumar Ethiraj <64294490+rmkr-dev@users.noreply.github.com> Date: Sat, 12 Sep 2026 15:55:38 +0000 Subject: [PATCH] Add Reaction Tap to Focus Games New short reaction round on the games hub with local best average, plus nav and style wiring. --- README.md | 3 +- assets/site.css | 36 ++++++++ assets/site.js | 3 +- games/index.html | 8 +- games/reaction/index.html | 171 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 217 insertions(+), 4 deletions(-) create mode 100644 games/reaction/index.html diff --git a/README.md b/README.md index f432d46..1abcdf5 100644 --- a/README.md +++ b/README.md @@ -70,13 +70,14 @@ Skillbook and Promptbook load JSON over `fetch`, so use a local server (opening ### Focus Games -Lightweight browser games for a quick break. No accounts, no ads, and scores stay in `localStorage` only. No sound effects in this first wave. +Lightweight browser games for a quick break. No accounts, no ads, and scores stay in `localStorage` only. No sound effects by default. - **Games Hub** (`games/`) — landing page with links and short descriptions - **Memory Match** (`games/memory/`) — flip cards, find pairs; best move count - **Sequence Recall** (`games/sequence/`) — Simon-lite pads; best level reached - **Number Slide** (`games/numbers/`) — 15-puzzle on a 4×4 board; best move count - **Word Scramble** (`games/words/`) — unscramble a common word; best streak +- **Reaction Tap** (`games/reaction/`) — wait for gold, then tap; best average ms ### AI diff --git a/assets/site.css b/assets/site.css index 2699c75..3bbdf17 100644 --- a/assets/site.css +++ b/assets/site.css @@ -780,6 +780,42 @@ body[data-tool="collab"] .site-footer { display: none; } } @media (max-width: 420px) { + +/* Reaction Tap */ +.reaction-pad { + width: min(100%, 320px); + min-height: 220px; + border-radius: 18px; + border: 1px solid rgba(255, 195, 0, 0.35); + font-size: 1.35rem; + font-weight: 700; + letter-spacing: 0.02em; + cursor: pointer; + color: var(--color-text); + transition: background 0.15s ease, transform 0.08s ease, border-color 0.15s ease; +} +.reaction-pad:disabled { cursor: default; } +.reaction-pad.is-idle { + background: linear-gradient(145deg, #1c2844, #121a2c); +} +.reaction-pad.is-wait { + background: linear-gradient(145deg, #3a1f24, #2a1218); + border-color: rgba(248, 113, 113, 0.45); +} +.reaction-pad.is-go { + background: linear-gradient(145deg, #c9a000, #ffc300); + color: #12161f; + border-color: #ffc300; + transform: scale(1.02); +} +.reaction-pad.is-early { + background: linear-gradient(145deg, #4a2030, #2a1218); + border-color: rgba(248, 113, 113, 0.7); +} +.reaction-pad:active:not(:disabled) { + transform: scale(0.98); +} + .memory-grid, .slide-grid { grid-template-columns: repeat(4, minmax(56px, 1fr)); diff --git a/assets/site.js b/assets/site.js index 884a3d8..2a25a56 100644 --- a/assets/site.js +++ b/assets/site.js @@ -42,7 +42,8 @@ { id: "memory", path: "games/memory/", name: "Memory Match", blurb: "Flip cards and find matching pairs.", cat: "Focus Games" }, { id: "sequence", path: "games/sequence/", name: "Sequence Recall", blurb: "Watch the taps, then repeat the pattern.", cat: "Focus Games" }, { id: "numbers", path: "games/numbers/", name: "Number Slide", blurb: "Slide tiles to sort 1–15 on a 4×4 board.", cat: "Focus Games" }, - { id: "words", path: "games/words/", name: "Word Scramble", blurb: "Unscramble a common word, then try the next one.", cat: "Focus Games" } + { id: "words", path: "games/words/", name: "Word Scramble", blurb: "Unscramble a common word, then try the next one.", cat: "Focus Games" }, + { id: "reaction", path: "games/reaction/", name: "Reaction Tap", blurb: "Wait for gold, then tap as fast as you can.", cat: "Focus Games" } ]; function rootPrefix() { diff --git a/games/index.html b/games/index.html index 42b6a79..a46a08e 100644 --- a/games/index.html +++ b/games/index.html @@ -4,7 +4,7 @@ Focus Games | RMKR Toolkit - + @@ -14,7 +14,7 @@

Focus Games

-

Short, simple brain games that stay in your browser. Large tap targets, offline after first load, and best scores saved only in localStorage. No sound effects in this wave.

+

Short, simple brain games that stay in your browser. Large tap targets, offline after first load, and best scores saved only in localStorage. Sound stays off; scores stay local.

@@ -33,6 +33,10 @@

Number Slide

Word Scramble

Unscramble a common English word, then hit Next for another. Keep a streak going.

+ +

Reaction Tap

+

Wait for gold, then tap. Five rounds; best average time stays on this device.

+

How it works

diff --git a/games/reaction/index.html b/games/reaction/index.html new file mode 100644 index 0000000..e20f243 --- /dev/null +++ b/games/reaction/index.html @@ -0,0 +1,171 @@ + + + + + + Reaction Tap | RMKR Toolkit + + + + + + + + +
+ ← Focus Games +

Reaction Tap

+

Wait for the pad to turn gold, then tap as fast as you can. Early taps count as a miss.

+ +
+
+ Last: — + Best: — + Round: 0/5 +
+
+ +
+
+

Press Start, then wait for gold.

+
+ +
+
+ + +