🎨 Palette: Improved game start experience and UI polish#59
Conversation
- Added "Press any key to start" prompt to let users prepare. - Implemented an animated, interruptible 3-2-1 countdown. - Used tcflush to ensure a fair game start by clearing buffered input. - Refactored UI rendering to remove redundant output and flicker. Co-authored-by: aidasofialily-cmd <247843425+aidasofialily-cmd@users.noreply.github.com>
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
💡 What
This PR adds a more polished game start sequence to SPEED CLICKER. It introduces a "Press any key to start" prompt followed by an animated "3... 2... 1... GO!" countdown. Additionally, it refactors the UI update logic in the main loop to be more efficient and consistent.
🎯 Why
Starting the game immediately after execution can be jarring, especially for new players or when the game is in hard mode. The new sequence provides a clear transition from instruction-reading to active gameplay.
📸 Before/After
♿ Accessibility
tcflushcall after the countdown to ensure that frantic keypresses during the animation don't result in accidental game actions, ensuring the game starts only when the user is ready.PR created automatically by Jules for task 4209051203107821340 started by @aidasofialily-cmd