Jump to content

New tutorial : Multiplayer WebSocket Game server written in C using libuv & libwebsockets & Cocos2d-x-HTML5


umen
 Share

Recommended Posts

Hello all
This tutorial i wanted to publish for along time now .
As i see that the indie IO games are building their servers in C++ .
It is intro to writing MMO games but not with the usual Node.js and and similar.
But this time i'm showing you how to assemble WebSocket server using libuv (node.js C networking lib) for the server networking and libwebsocktes for the web-sockets layer.
All server side is in simple pure C
And for client side im using Cocos2d-x the HTML5 version .

http://www.gamedevcraft.com/2016/08/part-1-multiplayer-websocket-game.html
Enjoy !

P.S
im planing to do the same tutorial using more flexible c++ 11.
And later i will publish tutorial about connecting the server with mongoDB for persistence
So please register to my news latter list to get updates .

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...

Wow I  am so tempted to write such a game server but to use pure c is such a challenge for me because I havent used it for more than 10 years. I think it will take me a lot of time to pick it up again. Is it really so unbearable to use node.js or netty as an io game server? If so I think I am doomed. 

I am curious how do you know agar.io and slither.io use c++ to implement their servers?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...