image

Tommy Leung at Ourcade continues his tutorial series on creating Phaser 3 games using modern JavaScript. In Part 4: "We ended Part 3 with a character that can move and jump on platforms.

Now we need some stars to collect.

As you can tell, we are using the best practices covered in previous parts!

First, the constant STAR_KEY is used to preload the star asset and then to create a group of equally spaced stars in createStars().

Our createStars() method returns the physics group which is used in create() to add a collider for the stars and platforms."

Read More