I'm trying to work out the best way to do my game.
If i have one room with all users in. ALL users --> so hopefully 1000's one day
Everytime someone moves, they send their X and Y position to the server.
Is it then feasible to loop through every single users "area" variable to see if they should recive a players location?
So:
1. Player4000 moves.
2. Sends his x/y to server --->
3. loop through all players to check area...
If(Player(X).area == Player4000's area){
Send Player4000's X/Y to Player(X)
}
Would this be an ok way to see if certain players need others locations, or should i just send the locations of every player to every other player?
Cheers.