04 / An experiment in shared space
A little chaos.
A shared playground.
Follow the light. Gather a little energy. Send a little back. A small multiplayer world, built with Java and a curious mind.
Local preview · no connection
Move with your pointer · hold click to fire
Drag to move · hold the fire button to shoot
Keyboard: arrows / WASD · Space to fire · Esc to leave
Collect lights to gain energy. A hit scatters some of it. No lives. No elimination. Just another way to play.
Anonymous sessions. Scores live only while you are connected. Up to 8 players per room; a new connection starts a new session.
JAVA / WEBSOCKETS / CANVAS 2D
Small world. Real engineering.
The browser draws and predicts. Java owns the world: movement, collisions, energy and every hit. WebSockets carry intentions in and shared state out.
Read the engineering storyBrowser
Input · prediction · Canvas 2D
↓ ↑ 15 snapshots / second
Java server
30 ticks / second · authoritative state