Skip to content

🎨 Palette: [UX improvement] Enhance game start and real-time HUD#122

Open
aidasofialily-cmd wants to merge 1 commit intomainfrom
palette-ux-improvements-8769413402183838912
Open

🎨 Palette: [UX improvement] Enhance game start and real-time HUD#122
aidasofialily-cmd wants to merge 1 commit intomainfrom
palette-ux-improvements-8769413402183838912

Conversation

@aidasofialily-cmd
Copy link
Owner

💡 What: The UX enhancement added

This PR implements several micro-UX improvements to the SPEED CLICKER game:

  1. Enhanced Visual Hierarchy: Highlights critical interaction keywords ("any key") and the countdown sequence with bold colors to guide player attention.
  2. Real-time High Score Tracking: The HUD now displays the current session record (High: X) alongside the score, providing immediate feedback on progress.
  3. Inclusive Achievement Logic: The "NEW BEST! 🥳" notification and final congratulations now trigger for first-time players (where initial high score is 0), ensuring a rewarding experience from the very first point.
  4. Polished CLI Output: Replaced fragile trailing-space line clearing with the robust ANSI \033[K (Erase in Line) sequence, preventing text artifacts during high-frequency updates.

🎯 Why: The user problem it solves

  • Users lacked immediate feedback on how close they were to their high score during gameplay.
  • First-time players were excluded from "NEW BEST!" celebrations, making the initial experience less engaging.
  • Terminal output could occasionally leave trailing characters if a previous HUD line was longer than the current one.
  • Critical instructions were not visually distinct from the rest of the text.

♿ Accessibility: Any a11y improvements made

  • Improved readability of instructions by using semantic colors to highlight interactive elements.
  • Ensured all volatile \r lines are reset with CLR_RESET to prevent color leakage to the user's terminal/screen reader.
  • Maintained strict cursor management (hiding during game, restoring on exit) to reduce visual clutter and ensure terminal usability after the game ends.

PR created automatically by Jules for task 8769413402183838912 started by @aidasofialily-cmd

- Colorize "any key" prompt, countdown digits (Bold Yellow), and "GO!" (Bold Green).
- Add real-time high score tracking to the in-game HUD.
- Update high score in real-time within the input processing loop.
- Make "NEW BEST! 🥳" feedback inclusive (triggers on first run if score > 0).
- Use ANSI escape sequence `\033[K` (Erase in Line) for cleaner HUD updates.
- Colorize and update final congratulations message for better visual impact.
- Maintain cursor hide/show requirements and terminal setting restoration.

Co-authored-by: aidasofialily-cmd <247843425+aidasofialily-cmd@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant