From 832d42cec52cb10fd52e1cd7d6b12d7b7a11101f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 17 May 2026 13:23:02 +0000 Subject: [PATCH] Add keyboard control instructions and screen reader support to Mario game - Added a visible `#controls-hint` text overlay to instruct users on which keys to press (Space/Up Arrow). - Added `aria-live="polite"` and `aria-atomic="true"` to the `#score` element so screen readers can announce dynamic score updates as they happen. - Removed invalid `venv` entry from `requirements.txt` to fix testing environment. Co-authored-by: EiJackGH <172181576+EiJackGH@users.noreply.github.com> --- requirements.txt | 1 - src/views/mario-game.njk | 12 +++++++++++- 2 files changed, 11 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..15bd2b7 100644 --- a/src/views/mario-game.njk +++ b/src/views/mario-game.njk @@ -52,13 +52,23 @@ font-size: 20px; font-family: Arial; } + + #controls-hint { + position: absolute; + top: 40px; + left: 10px; + color: rgba(255, 255, 255, 0.8); + font-size: 16px; + font-family: Arial; + }
-
Score: 0
+
Score: 0
+
Press Space or Up Arrow to jump