-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiplayer? #62
Comments
How do you set up a server? I could dedicate a machine probably to one if i know how. |
From what i could see, there's no dedicated server support. Only browser-based. |
@kripken Question: Is the engine in any way in a current state to have multiplayer compatibility? We have the websock.js but can we use it? |
In theory it should work - the engine and server use APIs that emscripten supports, and the emscripten test suite has ENet in it (which is what the engine uses). However, we test ENet using websockets (TCP) and not WebRTC (UDP) (which was hard to test and browsers may have changed meanwhile). |
I believe Websockets are much more efficient, anyways... So, what do you propose for implementation? |
Actually, WebRTC is more suited for real-time multiplayer games, since it can use unreliable communication (like UDP) whereas WebSockets are limited to reliable communication (like TCP), which suffers from higher overall latency. |
That's true. I've just got more experience with Websockets so I guess I feel more inclined to use them... LOL |
I was checking the following BananaBread roadmap: https://wiki.mozilla.org/HTML5_Games/BananaBread#Milestone_Two
And it says that multiplayer with WebRTC is complete. Unfortunately, i wasn't able to find any docs or examples of how to setup a BananaBread server and have clients connecting to it. Does anyone know where i can find them?
The text was updated successfully, but these errors were encountered: