Add Rex skins: cosmetic unlocks with a fossil-gated Mint - #6
Merged
Conversation
- SKINS palette table in sprite.ts (Classic, Ember, Glacier, Mint) with drawRex driven by the selected skin; rainbow cheat still overrides - Mint is locked until 3 hidden fossils are unearthed, with a menu toast + jingle the moment it unlocks - Menu skin picker: 4 tappable swatches with mini Rex heads, gold selection ring, padlock + hint for the locked skin; [ / ] cycle keys - Selection persists via tinyrex_skin (validated on read and write) - Player and ghost replay both wear the selected skin; the victory ceremony Rex uses it too; controls panel lists the new key - 13 new tests (skin table, persistence, selection/cycling, in-game propagation, unlock toast) — 150 passing; E2E verified in a real browser with screenshots
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.
What
Cosmetic skin system for Rex, giving the fossil hunt a payoff:
SKINSpalette table insprite.ts;drawRexis now palette-driven (the Konami rainbow still overrides everything).[/]cycle on the menu (locked skins skipped, wraps around).tinyrex_skin, validated on both read and write (corrupt/unknown values fall back to Classic).Validation (local — CI is failing for pre-existing unrelated reasons)
npm run typecheck✓npm test— 150/150 (137 baseline + 13 new: skin table, getSkin fallback, unlock gating, drawRex per skin + rainbow, store round-trip/invalid, menu selection/cycling, locked rejection, in-game + ghost propagation, unlock toast, skin keys ignored in play) ✓npm run build— 112.15 kB / 34.87 kB gzip ✓npm run lint✓Batch A — 4/4 (daily, ghost, fossils, skins). Up next: Batch B (Magma King boss level, power-up drops, adaptive soundtrack).