My additions to the Phaser.js "Getting Started With Phaser 3" tutorial
Create a new folder in your www directory of your apache server, only JS and HTML are needed so this may be excusable but Phaser recommends running in a web server.
Go to localhost/thenameofyourdirectory
Play away!
Left arrow key: Move left
Right arrow key: Move right
Up arrow key: Jump
When dead, left click: Restart
Collect pineapples, dodge asteroids. After all pineapples are collected in a "round", a new asteroid will spawn.
Feel free to download and modify to your liking, this isn't my original code so I take no issue in re-using and modifying this repository.