Skip to content

🎨 Palette: Format game scores with thousands separator and add previous personal best context#345

Open
aidasofialily-cmd wants to merge 1 commit into
mainfrom
palette/format-score-cli-1543712994826791344
Open

🎨 Palette: Format game scores with thousands separator and add previous personal best context#345
aidasofialily-cmd wants to merge 1 commit into
mainfrom
palette/format-score-cli-1543712994826791344

Conversation

@aidasofialily-cmd

Copy link
Copy Markdown
Owner

🎨 Palette: Improved score readability and personal best feedback in Speed Clicker

💡 What

  • Introduced formatWithCommas helper in src/utils.hpp to format large numeric scores with thousands separator commas.
  • Integrated the formatting throughout the interface: Personal Best display, HUD Score & High displays, and final game results.
  • Enhanced the "New Personal Best" game loop feedback to include the previous high score context (e.g. NEW BEST! ✨🥳 (was 1,000)) highlighted with Bold Yellow (CLR_CTRL) to maximize visual excitement.
  • Ensured inclusivity by showing high scores and new personal best feedback immediately to first-time players who start with 0.

🎯 Why

  • Reading dense, unformatted numbers in real-time CLI clicker games is challenging. Adding comma separators significantly improves cognitive processing and readability.
  • Showing previous high score milestones alongside active record-breaking achievements adds immediate context, highlighting the player's progress and enhancing gratification.
  • Providing high score visibility and milestone celebrations on the first point scored ensures a highly welcoming and inclusive first-time player UX.

♿ Accessibility

  • Improved readability of visual HUD text by using high-contrast bold color macros (CLR_CTRL) on critical milestones.
  • Standardized thousands-separators formatting for better numerical comprehension.

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

…us personal best context.

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