MENU

Multiplayer Skeleton

Sign in as
Server start stop

Server time: Worker (ms):










Uses AJAX 1000ms short-polling for 2-way communication with server. Server (PHP) tracks players, all object positions, global time, patient status, events, & interactions. Receives and sends game data as multiple arrays. Client (PHP + JS) uses inline JS, using a JS Worker for the computation-heavy pathophysiological simulation. Sends all player interaction and input immediately to the server for processing. Game status is stored as a single json encoded textfile on server. Unknown players are added automatically.