I just passed to Phaser 3 after developing some games with p5.js and wanted to make a 2d endless runner game. So here\'s the code for my game:
var game; var g