Skip to content

[2] [Team 2] Use animated WebP sprites across the game #32

@projectmushroom

Description

@projectmushroom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions