Skip to content

🎨 Palette: Improved score readability and achievement feedback#337

Open
aidasofialily-cmd wants to merge 1 commit into
mainfrom
palette/score-formatting-ux-18072129861810513636
Open

🎨 Palette: Improved score readability and achievement feedback#337
aidasofialily-cmd wants to merge 1 commit into
mainfrom
palette/score-formatting-ux-18072129861810513636

Conversation

@aidasofialily-cmd

Copy link
Copy Markdown
Owner

🎨 Palette: Improved score readability and achievement feedback

💡 What: The UX enhancement added

  • Introduced a thousand-separator formatter (1,234,567) for all score and highscore displays.
  • Enhanced the "NEW BEST!" live feedback with contextual information (previous score) and visual flair (emoji + yellow highlight).
  • Added proper color resets to the HUD to prevent UI bleed.

🎯 Why: The user problem it solves

  • Raw large integers (e.g., 1234567) are difficult to read at a glance in a fast-paced clicker game. Comma formatting makes the score immediately readable.
  • The previous "NEW BEST!" message lacked context; users now see exactly how much they've improved by seeing their old record.

♿ Accessibility

  • Improved readability of numeric data through standard thousands-separators.
  • Enhanced visual hierarchy of achievements using color and symbolic indicators.
  • Ensured terminal state consistency with proper ANSI reset sequences.

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

Implemented comma formatting for all numeric displays and enhanced the "NEW BEST!" notification with previous high score context and visual flair.

- Added `src/utils.hpp` with `formatWithCommas` helper.
- Updated `src/main.cpp` to use comma formatting for live and final scores.
- Enhanced "NEW BEST!" message with context (previous score) and yellow highlights.
- Fixed potential color bleed by adding `CLR_RESET` after mode indicators.

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

Copy link
Copy Markdown
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