4 ms·
It was much more reactive at ~200 players, I was playing around modifying the javascript to remove collision detection (there's a method with a long ternary sta
by Robadob 13y ago
It was much more reactive at ~200 players, I was playing around modifying the javascript to remove collision detection (there's a method with a long ternary statement that ends ? !1 : !0, change the both to !1) etc until it hit ~700 users and started dying for me (presumably when it hit hacker news).
- swah 13y agoJavascript games = cheating?
- mdpane 13y agoTo write a secure online multiplayer game in javascript, the server would have to assume the client has been compromised by default and verify everything server-side. This wouldn't work for anything fast paced, but it'd suffice for RPGs and puzzle games. For example, in an RPG, a client says it's moved 5 tiles north. The server receives it, but before broadcasting it to other players, the server would have to read the map and make sure it's valid (e.g. there's nothing in the way).