dotJS 2012 - Christian Amor Kvalheim
summary
Built a multiplayer Pac‑Man clone called Mungo man using Node.js + socket.io and Express, with a MongoDB ring buffer holding game state per process so each game lives in one process. Client uses canvas and SoundJS; Acqupa/aquepara provides retro game scaffolding. WebSockets (TCP) causes jitter because of ordering; WebRTC datachannel with SCTP unordered messages is recommended. Latency examples: 20 ms ping → ~40 ms roundtrip → ~25 FPS; 135 ms ping → ~270 ms → ~4 FPS. Dedicated servers and careful memory use avoid V8 GC pauses.
AI-written summary · about
chapters (5)
related talks
40mMultiplayer Game Dev in Web: how to build your own game in less than 30 minutes
50mBuild Your Own Game Engine in the Browser
31mLessons from the experimental edge of technology
49mNode JS
33mFun With Websockets
49mThe Real Time Web with XMPP
51mBuild Your Own Game Engine in the Browser
26mdeveloping videogames in JavaScript
