Phaser 3 is an excellent framework for designing 2D Javascript games in particular. The game coded here is a basic usage example for Phaser 3.