This is an idea I just thought of (like just today).
If you have a babylon.js project running, then a website, you could make a multiplayer game.
How it could work:
You have the game running with no cameras, but a function that can make one. When a user connects to the site, a window.alert();
could pop up asking for a username. The input would name a canvas “username-canvas”.
Somehow (I thought this up today, haven’t thought this through) the function that can make cameras is triggered, adding a camera, connected to “username-canvas”, and control would be given to “username-canvas”.
That’s the basic idea. Not sure ho keydown, keyup, mousedown, mouseup events would work.
I wonder if something like this would work with sites like github, gitlab, or bitbucket.
Feedback would be nice. Just an idea.