Maaz Ali Posted February 18, 2017 Share Posted February 18, 2017 Hi all! I'm newbie to game development. I just complete my first game, a simple game using HTML5 canvas, socket.io and express. I have NodeJS npm installed and i run my game locally in my PC as npm game.js. The question is that now i want this game to upload to a server where different users from different devices play the game. Is it works like we upload normal sites to domains or different. Please help! Thanks. Quote Link to comment Share on other sites More sharing options...
rgk Posted February 19, 2017 Share Posted February 19, 2017 Well since your using node, your going to most likely want a VPS. A lot of shared hosts offer ssh access though. I use linode, here is my ref link: https://www.linode.com/?r=91ab7019193a872cd28fa4f7283a6c79390b4b17 Quote Link to comment Share on other sites More sharing options...
ClusterAtlas Posted February 25, 2017 Share Posted February 25, 2017 Basically your server code will be different from your client-side code, as it will be running on NodeJS. You'll host it on a server (small vps's like linode / namecheap is ok, though you can also use azure / google cloud / amazon for overkill), you will have to open ports, then upload your server script then run it. You gotta figure out the connection & gameplay flow, indexing of all player's sockets, masking of millisecond delays / lags w/ interpolations, etc etc. You might also want to check out my sig, I've covered a bit about the networking part of multiplayer HTML5. I'm also currently making a multiplayer one so if you need assistance just hit me up 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.