Physics Loop in a NodeJS/Socket.IO Environment

Posted by Thomas Mosey on Game Development See other posts from Game Development or by Thomas Mosey
Published on 2013-09-02T15:32:45Z Indexed on 2013/10/28 22:15 UTC
Read the original article Hit count: 264

Filed under:

I'm developing a 2D HTML5 Canvas Game, and I am trying to think of the most efficient way to implement a Physics Loop on the server-end of things, running NodeJS and Socket.IO.

The only method I've thought of is using setTimeout/Interval, is there any better way? Any examples would be appreciated.

EDIT: The Game is a top-down Game, like Zelda and older Pokemon Games. Most of the physics done in the loop will be simple intersects.

© Game Development or respective owner

Related posts about node.js