New answers tagged websocket
Send as few packets as possible, with as much detail in them as needed, without impacting on the players' experience of the game. Do not send every entity's movement to every player. "Activate" entities for players based on whether they're within a certain range (sight + 20%, perhaps) and inform them about actions only then. As for the attack function, ...
Top 50 recent answers are included