phaserjs / phaserjs/phaser

TilemapGPULayer Animated tiles breaks if 2 or more animated tiles are present in tileset

Open
#7,331 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
40.3k
Forks
7.2k
PR merge metrics
No merged PRs in 30d

Description

  • Phaser Version:
    4.2
  • Operating system:
    Windows 11
  • Browser:
    Google Chrome

Description

As soon as 2 or more animated tiles are defined in a tileset all animated tiles apart from the first stop working in a TilemapGPULayer

Example Test Code

https://stackblitz.com/edit/vitejs-vite-hrfwkpon?file=src%2Fmain.js

Should render like:

https://github.com/user-attachments/assets/a5406819-b28b-4024-b8cc-3c7c9a8d064f

Additional Information

It would be great if creating examples like this was a more straightforward process

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the linked StackBlitz reproduction in Chrome and inspect the TilemapGPULayer path responsible for animated tiles. Compare rendering with one versus two animated tiles in the tileset; done means every animated tile continues rendering and animating when multiple animated tiles are present.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
56/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.