I have replaced Arcade Physics with Box2D-WASM in the examples of the Making your first Phaser 3 game tutorial:
GitHub repository with Rollup guide
Playground:
I have replaced Arcade Physics with Box2D-WASM in the examples of the Making your first Phaser 3 game tutorial:
GitHub repository with Rollup guide
Playground:
Demo on Glitch + source code: Box2D-WASM physics on the server side with Phaser 3 and JavaScript
The server sends the positions of the collider vertices that Phaser draws:
Some progress with multiplayer. I send the collider vertices and rays from the server with Box2D-WASM to clients if the “Show debug info” is checked:
The ray casting with Box2D-WASM is necessary to check if the player is on the ground to make a jump.