From a1e954b7333f2610b100cfa8bd4c72f66155efa7 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 27 May 2026 13:21:40 +0000 Subject: [PATCH] feat(ux): add keyboard instructions and accessible score to mario game Adds an on-screen instruction panel explaining the jump controls, improving discoverability. Also adds `aria-live="polite"` and `aria-atomic="true"` to the score element so that screen readers can announce score updates dynamically without spamming the user. Removes an invalid `venv` entry from `requirements.txt` to unblock pip installation and testing. Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com> --- requirements.txt | 1 - src/views/mario-game.njk | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index cfaa995..4ad1501 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ numpy pandas requests -venv diff --git a/src/views/mario-game.njk b/src/views/mario-game.njk index 67b6bd7..54ef64b 100644 --- a/src/views/mario-game.njk +++ b/src/views/mario-game.njk @@ -52,13 +52,26 @@ font-size: 20px; font-family: Arial; } + + #instructions { + position: absolute; + top: 10px; + right: 10px; + color: white; + font-size: 16px; + font-family: Arial; + background: rgba(0, 0, 0, 0.5); + padding: 5px 10px; + border-radius: 5px; + }
-
Score: 0
+
Score: 0
+
Press Space or Up Arrow to jump