Repository navigation
feat: Add Viva Las Vegas cat counter theme - #77
Merged
Remi Dyon (raemone) merged 1 commit intoOct 23, 2026
Merged
Conversation
Adds a fourth counter theme, "Viva Las Vegas": a rags-to-riches arc where a broke alley cat climbs to Elvis-level high roller as feedback comes in. - 7 stages (0/10/25/50/75/100/130): Will Purr For Chips, penny slots, blackjack, roulette, 777 jackpot, high roller, and Elvis on a throne of cash. Art generated in Bing Image Creator; prompts in scripts/vegas-cat-prompts.json for reproducibility. - Celebrations rain poker chips and banknotes (new 'casino' confetti style) with money/casino/high-roller emoji parades. - Slot machine sounds generated in memory: coin ding per response (Chill), three-reel spin + win bell (Party), full jackpot with bell and coin cascade (Chaos and milestones). - Vegas milestone and encouraging messages, neon background tint and a gold progress bar. THEME_CONTENT entries now carry their own view/counter/cat-container ids and optional sounds/confettiStyle, so setTheme, updateCatState, dropFood, the digit display and the pulse no longer branch on 'cat-de'. Tests: new tests/vegas-cat-theme.spec.mjs; dropdown expectation updated for the fourth option. 24/24 Playwright tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Remi Dyon (@raemone) could you please review and approve this PR once it's done? After it merges, please verify that it pushes to prod. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a fourth theme to the
count.htmltheme dropdown: Viva Las Vegas. A broke alley cat goes rags-to-riches into an Elvis-level high roller as feedback responses come in. Existing themes (Classic, Feed the Cat, Feed the Cat (German)) are unchanged.Stages
Like the German theme, stage 130 is a visual apex only: it doesn't add a milestone, and the progress bar shows "🎤 The King of Vegas!" from 130 onward. Art was generated with Bing Image Creator (1:1, 1024×1024). Prompts are in
scripts/vegas-cat-prompts.json.Celebrations and sound
confettiStyle: 'casino'draws poker chips and banknotes on the confetti canvas.generateWav(no audio files). A theme'ssoundsmap swaps the generic chime/fanfare/chaos/milestone sounds for its own.Refactor
THEME_CONTENTentries now carry their ownviewId/counterId/catContainerId. That removes thecat-deternaries insetTheme,updateCatState,celebrateCatMilestone,dropFood, the digit display, the counter sizing and the update pulse. Adding another theme is now mostly a data entry. All styling stays CSP-safe (class toggle, no inline scripts).Testing
tests/vegas-cat-theme.spec.mjs: theme switching and persistence, all 7 stages at boundary counts, counter and progress bar, image load and size, messages, food drops, sound swap, casino confetti.german-cat-theme.spec.mjs: the dropdown expectation now includescat-vegas.🤖 Generated with Claude Code