Commit Graph

1 Commits

Author SHA1 Message Date
Brian Fertig 0223a191fc
Add video background option to Mahjong Match
- Register three looping mp4 backdrops in the asset manifest alongside the existing images.
- Add an Image | Video segmented toggle on the layout-select screen; choice persists in localStorage and defaults to Video.
- Render a muted, looping, letterboxed video behind the tiles with a scrim, falling back to image backdrops if no video is cached.
- Defer re-fitting after Phaser swaps in the real video frame so the backdrop isn't rendered ~3× zoomed against the 256×256 placeholder.
- Add tools/smokeMahjongMatchBgVideo.mjs Playwright smoke test covering toggle default/persistence, video playback/mute/loop/sizing, and image fallback.
2026-11-26 13:21:01 -07:00