First Game Example Needs Upgraded to Support Phaser 4

Open Beginner friendly
#7,275 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript

Research direction

Open the first game example in the Phaser documentation and locate the lines calling stars.children.iterate. Change those calls to stars.children.forEach, then run or load the example to confirm it works with Phaser 4 and the stars behavior remains correct.

Written by the indexing model from the issue text.

Description

In the first game example from the Phaser docs, the lines which call the stars.children.iterate method need to be changed to stars.children.forEach due to a breaking API change in Phaser 4.

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

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.

More from phaserjs/phaser

All issues in phaserjs/phaser

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.