Jump to content

HTML5 multiplayer Game


Maaz Ali
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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 ;)

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