From 24364bef76f9b318571d04fe520c90360310d9bf Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 17:30:11 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Enhance=20HUD=20achie?= =?UTF-8?q?vement=20styling=20and=20prevent=20ANSI=20color=20bleed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add CLR_RESET after mode tags to prevent ANSI color bleed on status line - Highlight live "NEW BEST! 🥳" achievement notification with CLR_CTRL - Style Game Over personal record summary message with CLR_CTRL and celebratory 🎉 emoji Co-authored-by: aidasofialily-cmd <247843425+aidasofialily-cmd@users.noreply.github.com> --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b9144b7..9fa244b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -144,8 +144,8 @@ int main() { if (updateUI) { std::cout << "\r" ERASE_LINE << CLR_SCORE << "Score: " << formatWithCommas(score) << CLR_RESET << " | High: " << formatWithCommas(highscore) << " " - << (hardMode ? CLR_HARD "[HARD MODE]" : CLR_NORM "[NORMAL MODE]") - << (score > initialHighscore ? " NEW BEST! 🥳 (was " + formatWithCommas(initialHighscore) + ")" : "") + << (hardMode ? CLR_HARD "[HARD MODE]" CLR_RESET : CLR_NORM "[NORMAL MODE]" CLR_RESET) + << (score > initialHighscore ? " " CLR_CTRL "NEW BEST! 🥳 (was " + formatWithCommas(initialHighscore) + ")" CLR_RESET : "") << std::flush; updateUI = false; } @@ -158,7 +158,7 @@ int main() { tcsetattr(STDIN_FILENO, TCSANOW, &oldt); std::cout << "\n\n" << CLR_SCORE << "Final Score: " << formatWithCommas(score) << CLR_RESET << "\n"; if (score > initialHighscore) { - std::cout << "Congratulations! A new personal best!\n"; + std::cout << CLR_CTRL << "🎉 Congratulations! A new personal best!" << CLR_RESET << "\n"; } std::cout << "Thanks for playing!\n"; std::cout << "\033[?25h" << std::flush;