Jump to content
  • Advertisement
Caleb Adam

Libraries for online web game multiplayer?

Recommended Posts

I want to make a html5 canvas / javascript game, similar to agar.io. I know a little node.js, and I think I understand the way online multiplayer works, but now that I do understand I realize it's gonna be a ton of work if I want to do it from the ground up with something like socket.io. My question is: are there libraries that can help with the multiplayer aspects of my game (sending game packets, etc.), and if so, is the performance for that library fast enough to run my game? (has a latency at least as low as agar.io)

 

Share this post


Link to post
Share on other sites
Advertisement

I did find Lance, but the list of games built on it is suspiciously small. I'll look into it, but please post your recommendations!

Share this post


Link to post
Share on other sites

I write my game server from scratch. I don't think socket.io can handle the workload of any serious multiplayer web game, try to use `ws` or `uws` library.

Share this post


Link to post
Share on other sites

Thanks, by now I’ve decided to learn Unity and release my game for WebGL. (I’m assuming the networking on that is reasonably fast and reliable, Unity is a very widely used game engine) That way I can release for any other play form if I want later. It’s encouraging to hear that someone actually has built their game from scratch with web sockets though!

Share this post


Link to post
Share on other sites

I don't think socket.io can handle the workload of any serious multiplayer web game, try to use `ws` or `uws` library.

I don't think there's a significant difference in what server-side socket library you're using. The main problem is that all websockets use TCP, and that you will need to funnel player counts across multiple threads (hard with Node.js) and multiple servers (hard in general.)

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!