Source: /cirosantilli/phaser-js

= Phaser.js
{c}
{wiki=Phaser_(game_framework)}

Likely the best <JavaScript> <2D> game engine as of 2023.
* https://github.com/photonstorm/phaser
* https://phaser.io/
Uses <Matter.js> as a <physics engine> if enabled. There's also an alternative (in-house?) "arcade" engine: https://photonstorm.github.io/phaser3-docs/Phaser.Physics.Arcade.ArcadePhysics.html but it appears to be simpler/less robust (but also possibly faster).

TODO any 2D first person examples a bit like <Ciro's 2D reinforcement learning games>?

The examples are present under:
``
git clone https://github.com/photonstorm/phaser3-examples
``
but note that that repo is huge, about 4.5 GiB on local disk, as is has tons of assets.

The demos also include a <Monaco (editor)>-editor based sandbox mode where you can edit code directly on the web and see the game update which is a really sweet addition.