Real-time 2D shooter with node.js