Inspiration
Built for CamHack 2026 around the "Out of Sync" prompt, we wanted to turn lag, desynchronization, and rubber-banding—usually the most frustrating parts of games—into the core mechanic. Instead of rewinding time, you are the thing out of sync with the world.
What it does
De-sync Re-sync is a 3D third-person puzzle-platformer and boss-fight game playable in two modes:
- Single Player: Move through 3D levels while managing your Echo—a ghost that trails a few seconds behind you. Snap back to your echo (
Q/ click) while preserving your momentum to cross impossible gaps, trigger echo-only cyan pads, solidify phase platforms with your echo's shadow, and dodge corrupting lasers. - Two-Player Asymmetric Co-op: Player 1 controls the runner in the 3D world, while Player 2 operates a separate Desync Console (
cli.html)—either in another window or on a second computer across the internet. Player 2 triggers abilities like Temporal Desync, Spatial Desync, and Framerate Desync in real time to help (or mess with) Player 1.
It also features a full boss fight with homing chest lasers, SYNCY™ (a cheerful corporate narrator whose subtitles drift out of sync with its voice as your desync rises), echo taunts when you stand still, death replays, and even a fake SYNC FAULT crash you have to snap out of.
How we built it
- 3D Engine & Shaders: Built with vanilla ES Modules (zero build step) and Three.js (
0.160.0), using a custom GLSL glitch shader, fixed-timestep physics, and an event-bus architecture so features (boss, narrator, music, replays, SFX) stay modular. - Audio & Voice: Procedural sound effects via the Web Audio API and dynamic SYNCY™ voice lines using the browser's Web Speech API.
- Cross-Network Two-Player Relay: A custom Python (
ThreadingHTTPServer) relay server (server.py) using Server-Sent Events (SSE) (with long-poll fallback), one-time auth tokens, rate limiting, and Cloudflare Quick Tunnels (cloudflared) so Player 2 can join from anywhere with a single link.
Challenges we ran into
- Keeping P1 and P2 in sync about being out of sync: Designing a lightweight, low-latency, authenticated relay between the 3D game loop and the P2 CLI console—including handling stale browser ES module caching (solved with custom no-cache serving) and safe exposure over
cloudflared. - Physics & Momentum Preservation: Tuning fixed-step movement, echo position history sampling, and momentum-preserving snaps so platforming and spatial/framerate desync feel responsive rather than buggy.
- Boss & Mechanic Readability: Making hazards like sweeping homing lasers, echo corruption, and phase platforms intuitive without cluttering the screen.
What we learned
- How to architect a multi-feature 3D web game with zero bundler overhead using clean ES module boundaries and an event bus.
- Building a secure, zero-dependency Python SSE + Cloudflare Tunnel relay for instant two-computer co-op.
- That turning "network bugs" (framerate drops, spatial rubber-banding, desynced audio/subtitles) into intentional game mechanics makes for surprisingly fun co-op communication.
AI usage
We used Google Antigravity and Claude code to help us build this project
What's next
- Expanding the main campaign levels and adding more P2 Desync Console exploits (like the in-progress Duplication ability).
- Adding custom level sharing and speedrun leaderboards.
Built With
- cloudflare
- css3
- glsl
- html5
- javascript
- python
- server-sent-events
- three.js
- web-audio-api
- webgl