A little while back I made a VERY simple multiplayer boilerplate with babylon.js and colyseus. All it does is communicate each person’s position to every client, but could be expanded to include anything. For physics, you could fake client prediction by communicating each player’s angular and linear velocity.
Right it doesn’t require reviews for now except the chapter on post-processes, the « HDRRenredingPipeline » has been removed. This is the only breaking change we have in that book.
I implemented the simplest multiplayer using WebSockets (package ws - npm) and Node.js. I send keyboard input to the server, which relays it to other clients. Used by WebGL 1.0, glMatrix and OimoPhysics. Extracted original models, textures and animations using RE1MV. Created a non-skinned skeletal animation using the Blender Python API. Skinning is expensive in terms of resources and is not needed for the models in this game, in which all parts of the animation models are separate objects.
All extracted animations for Jill and Barry. Rotate the camera with the mouse wheel pressed. Moving the camera with the right mouse button:
I tried to use Colyseus but deploying was failed, I had a problem with CORS: Discord I didn’t solve this problem. I rewrote my demo using ws package.The movements are smoother than on the Colyseus SDK. Demo in browser I understand that it is offtop. Sorry about it.