3 ms·
For my current project, a multiplayer game that runs in the browser, its essential to be able to run the same code on the server as in the client. This is how F
by bni 15y ago
For my current project, a multiplayer game that runs in the browser, its essential to be able to run the same code on the server as in the client. This is how FPS games such as Unreal do it with C++.
Basically the game simulation needs to run on the server and be the authorative game state to distribute to the clients that does their own prediction of the game state.
To do this with Java or PHP on the server would mean to implement the game simulation twice.
Keeping in mind that social network sites, etc resembles multiplayer games more and more (realtime feedback etc), node.js really helps out here.