Hi @danielart , there are plenty boilerplates for creating games with phaser:
- Phaser 3 - Starter Templates with ES6+ (ESNext) or TypeScript
- even to enable 3d on it on the same post: Phaser 3 - Starter Templates with ES6+ (ESNext) or TypeScript - #15 by yannick
- and even multiplayer ones including Colyseus official Phaser: Real Time Multiplayer with Colyseus
- GitHub - halftheopposite/TOSIOS: The Open-Source IO Shooter is an open-source multiplayer game in the browser
These are just the main examples, there are plenty more if you go over the forum or google a bit about it.
As personal recommendation, if had to start from scratch now (after 4 years on developing games), my setup would be:
- TS, EsBuild (or Parcel as second option) for the code base (to later transpile to whatever I need).
- MatterJS as physics engine on server and client side for 2D multiplayer games (and still using Phaser for the rendering).
- CannonJS (not the official but one of the manteined forks) as physics engine for 3d multiplayer games.
- If you are not using physics, then a single class/component that you could use on both sides (server and client), in case you want to do a multiplayer game.
- Always Colyseus for communications.
- And for last a storage system like Postgree SQL or Firebase.
Hope this helps.
Best,
Damian