umen Posted August 14, 2016 Share Posted August 14, 2016 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 . Raggar 1 Quote Link to comment Share on other sites More sharing options...
Raggar Posted August 14, 2016 Share Posted August 14, 2016 Tutorials like these are always appreciated. I got 2 questions: 1) When are you planning on adding the remaining parts? 2) Will you be doing physics on the server as well? Quote Link to comment Share on other sites More sharing options...
umen Posted August 14, 2016 Author Share Posted August 14, 2016 Thanks! 1. when time allow me . 2. sorry no . Quote Link to comment Share on other sites More sharing options...
jkohler Posted August 25, 2016 Share Posted August 25, 2016 Thanks for sharing the tutorial. Any thoughts on making the second one? Quote Link to comment Share on other sites More sharing options...
caymanbruce Posted January 14, 2017 Share Posted January 14, 2017 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.