In this tutorial Emanuele updates his “Down the Mountain” prototype to Phaser 3 with full source code.
Emanuele Feronato writes: "I usually update the Down the Mountain prototype every summer, so it’s time to release another update, porting the latest version to Phaser 3.
The game features object pooling to recycle all blocks – actually hexagons – which fly off the top of the canvas.
Tap or click on the left half of the canvas to move left, on the right half of the canvas to move right.
I managed to handle player position and scrolling using pure math rather than looking for their world coordinates. This makes the code look a bit more clean."