Instead of doing a game loop, I would like to do something different. My game does not have a ton of 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 loop that checks a few variables to know what to do with the player.
Now my question is this, 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" part of the server)
Let us say a 1000 players join the game, if the things I fear are true then this approach seems to be a very bad Idea. Unless I misunderstand setImmediate too.