Instead of a game loop, I want something different: My game does not have much action going on; just moving users over a tile map with correct timers in between.
Since I am using Socket.IO, I want to run a "mini game loop" inside the
io.sockets.on("connected"-part of my script. I am thinking to run a
setImmediate checking a few variables to know what to do with the player.
The way I understand socket.IO, it would create this
setImmediate function for each client that joins the server. (Because it runs inside the "connected" event handler.)
Let's say 1000 players join the game. If what I fear is true, this approach seems bad. Have I misunderstood