networking lib to keep a game world synchronized between server-clients
This lib allows you to share a game-world between a server and several clients without having to worry about manually messing with sockets. Just tell the system which objects each client can see and the system will automatically keep care of keeping them synchronized using the least bandwidth possible.
npm install gamemaster
players = gamemaster.init 7171 -> @commands = move_left: ~> @x += 1 @x = 0 for player in players player.watch @, ["x"] @watch player, ["x"]
world = gamemaster.connect window.location.origin setInterval (-> world.send "move_left"), 500