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

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]
(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 .

4 Likes

did you have tutorial with cocos2dx v3 using c++ instead html5 ? :slight_smile: it’ll be great

well the focus now is about networking and gaming of any kind
so c++ game + networking will be also .
register to my mail list and i will update you when i do

nice :smiley:

Next will be also using RakNet in the client for UDP

really? raknet? wow this is great! Wait for em :slight_smile: