HTML5 Canvas / Node.js / networking pointers

Discussion in 'Game Development (Technical)' started by James Sherriff, Sep 1, 2016.

  1. James Sherriff

    James Sherriff New Member

    Sep 1, 2016
    Likes Received:
    Hi everybody, this is my first post so I'm sorry if it's not easy to understand.
    Last week I went through a tutorial on how to make a basic HTML5 Canvas game using JavaScript.
    I decided to expand upon that game by making it multiplayer with a Node.js/ server.
    The gameplay is currently laggy except for when I run the clients and server locally (Narrowing the problem down to bad networking).
    I was wondering if anybody could take a look at the game and code (Github repo provided) and tell me where I'm going wrong with my networking and what I could do to improve it.

    I'm sorry for my terrible and messy code, I'm learning :)

    Game -
    Github -
    allordiron likes this.

Share This Page

  • About Indie Gamer

    When the original Dexterity Forums closed in 2004, Indie Gamer was born and a diverse community has grown out of a passion for creating great games. Here you will find over 10 years of in-depth discussion on game design, the business of game development, and marketing/sales. Indie Gamer also provides a friendly place to meet up with other Developers, Artists, Composers and Writers.
  • Buy us a beer!

    Indie Gamer is delicately held together by a single poor bastard who thankfully gets help from various community volunteers. If you frequent this site or have found value in something you've learned here, help keep the site running by donating a few dollars (for beer of course)!

    Sure, I'll Buy You a Beer