Description
The character sprite WebP files (character_idle.webp, character_run.webp, etc.) are animated WebPs with multiple frames. Currently Phaser loads them as static single-frame images. Need to use the animated versions everywhere.
Current state
Remaining work
- In-game player sprites need animated WebP support
- Options: DOM overlay synced to Phaser position, or extract frames from animated WebP into Phaser spritesheets
- DOM approach simpler but may have perf issues with 4 players
- Frame extraction more robust but needs a WebP decoder
Files
js/entities/Player.js
js/scenes/BootScene.js (frame extraction if that approach)
Acceptance
- All character sprites play their WebP animation in-game
- No performance regression
Description
The character sprite WebP files (character_idle.webp, character_run.webp, etc.) are animated WebPs with multiple frames. Currently Phaser loads them as static single-frame images. Need to use the animated versions everywhere.
Current state
Remaining work
Files
js/entities/Player.jsjs/scenes/BootScene.js(frame extraction if that approach)Acceptance