New answers tagged websocket
check out http://browserquest.mozilla.org/ as a reference model. it uses node for the backend. They use setTimeout on server side classes e.g character, mob, player. Messages are sent client-server (move, attack etc) and server-client (move,spawn,damage etc). There are client and server side versions of classes for major entities in the game world. Numeric ...
Top 50 recent answers are included