New answers tagged


Node.js & the event loop : To prevent flooding the action queue by multiple users playing the same game, I would divide the MMO into game rooms or game regions / zones. Dividing the game server into independent threads that could even run on independent machines. A login socket server for handling new incoming clients with a db reader & writer ...


context.clearRect() has a method signature of: context.clearRect(x, y, width, height) In your code, however, you are passing the height and width in the incorrect positions. Changing your call to context.clearRect(0, 0, canvas.width, canvas.height) fixes the issue. MDN clearRect() documentation.

Top 50 recent answers are included