Part 4 in a new series on making your first Phaser 3 game using modern JavaScript practices.

Article by Richard Davey. Posted on 22nd Apr 2020.   @photonstorm

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