Multiplayer HTML5, Node.js, Socket.IO

后端 未结 4 1436
刺人心
刺人心 2020-12-12 18:28

I trying create simple Multi-player with HTML5 Canvas, JavaScript(too using John Resig simple Inheritance library) and Node.js with Socket.IO. My client code:



        
4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 19:20

    In case anyone stumbles across this question as I have just now, I wanted to add this link as an example.

    I was following the same path as the op several months ago and read every article I could find on the authoritative server model (including the one referenced in the answer by @Epeli), and how to implement it with nodejs/socketio.

    The result of my research manifested itself in the github project located at the link provided above (there is also a live demo). Hope this helps someone.

提交回复
热议问题