Skip to content
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

Open
VinnyVicious opened this issue Dec 16, 2015 · 8 comments
Open

Multiplayer? #62

VinnyVicious opened this issue Dec 16, 2015 · 8 comments

Comments

@VinnyVicious
Copy link

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?

@Croydon
Copy link
Contributor

Croydon commented Dec 16, 2015

See also #57 & #40.

And yes I agree, if there aren't enough information available it's hard to find somebody who is setting up a server.

@kriekprinsloo
Copy link

How do you set up a server? I could dedicate a machine probably to one if i know how.

@VinnyVicious
Copy link
Author

From what i could see, there's no dedicated server support. Only browser-based.

@noahcoetsee
Copy link
Contributor

@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?

@kripken
Copy link
Owner

kripken commented May 18, 2018

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).

@noahcoetsee
Copy link
Contributor

I believe Websockets are much more efficient, anyways... So, what do you propose for implementation?

@Calinou
Copy link

Calinou commented May 19, 2018

I believe Websockets are much more efficient, anyways...

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.

@noahcoetsee
Copy link
Contributor

That's true. I've just got more experience with Websockets so I guess I feel more inclined to use them... LOL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants