Inspiration## Inspiration
Built for BCSS Game Jam 2026 (Out of This World), Escape Velocity started from a simple question: what if gravity wasn't background flavor, but the entire puzzle? Instead of constant-thrust arcade steering, every launch in the main campaign is a single ballistic commitment—read the gravity wells, pull back, and let orbital mechanics carry a stranded probe home.
To pair that meditative puzzle core with instant pick-up-and-play variety, we expanded the universe with Gauntlet Run, Daily Sector, a live Gravity Sandbox, and 10 playable Space Arcade modes.
What It Does
- 20-Level Puzzle Campaign (6 Sectors): Progress through Cradle, Drift, Deep, Beyond, Rift, and Void, chaining soft landings, dodging suns and mines, curving past black holes, threading momentum portals, and using
0.18xslow-motion (Space) to slip past spinning windmills. - 10 Space Arcade Modes: Starfighter 3D, Warp Tunnel 3D, Nebula Racer 3D, Boss Duel, Asteroid Breaker, Orbital Defense, Solar Lander, Sector Command (RTS), Quantum Breakout, and Star Match.
- In-Game Video Guides: Every sector and arcade mode includes a Remotion-rendered briefing video and control card before you launch.
- 100% Client-Side & Offline-Ready: Zero external trackers, local save backups (JSON export), dark/light showcase, and full keyboard/mouse/touch support.
How We Built It
- Deterministic 120 Hz Physics Core (
src/sim.js): Both live flight and the aim-preview trajectory (EV.predict()) run the same fixed-timestep symplectic Euler integrator ($\Delta t = \frac{1}{120}\text{ s}$) with softened Newtonian gravity: $$\mathbf{a}i = \sum{j} \frac{G \, m_j \, (\mathbf{r}_j - \mathbf{r}_i)}{\left(|\mathbf{r}_j - \mathbf{r}_i|^2 + \epsilon^2\right)^{3/2}}, \qquad \epsilon^2 = 900$$ Soft landing requires a relative impact speed below $240\text{ px/s}$, while repulsor worlds invert and boost the normal velocity by $1.7\times$. - Procedural 3D Planets & Web Audio (
src/game.js): Equirectangular planet textures are generated on offscreen canvases and mapped onto rotating spheres via $\arcsin$ strip projection with terminator shading and tilted rings. Audio is synthesized live with Web Audio oscillators and filtered noise. - Single-Bundle Delivery (
build.py): A Python bundler minifies and inlinessrc/style.css,src/sim.js,src/levels.js,src/arcade.js, andsrc/game.jsinto a singleindex.html(~171 KB) with zero runtime frameworks. - Automated Level Solver (
tools/solve.js): A Node.js brute-force solver importssrc/sim.jsandsrc/levels.jsdirectly to mathematically verify that all 20 levels are solvable and compute their Par.
Challenges We Faced
- Zero-Drift Aim Prediction: Any mismatch between the dotted aim preview and actual probe flight breaks player trust. Sharing one deterministic
EV.step()function across live gameplay, trajectory prediction, andtools/solve.jseliminated drift. - 60 FPS 3D Visuals Without WebGL Overhead: Rendering spinning textured planets, particle wakes, and 3D arcade tunnels on 2D Canvas required pre-caching nebula backdrops and optimizing per-strip sphere projection.
- Balancing Fair Difficulty: Tuning black hole masses, moving moons, and rotating windmill gaps by hand is error-prone; running
tools/solve.jsagainst all 20 levels caught impossible trajectories early. - Browser & Mobile Polish: Eliminating horizontal overflow on
375pxmobile viewports, adding keyboard/accessibility support, and compressing social preview assets (og-image.png) under 300 KB.
What We Learned
- Shared Deterministic Cores Pay Dividends: Writing physics once as a pure, DOM-free module (
src/sim.js) unlocked trustworthy aim previews, deterministic Daily Sectors, and automated Node.js solvability proofs from the same code. - Constraints Sharpen Craft: Shipping a full 11-mode game suite with procedural audio, 3D visuals, and zero external tracking SDKs in a single HTML file forced clean architecture and ruthless bundle discipline.
What it does
How we built it
Challenges we ran into
Accomplishments that we're proud of
What we learned
What's next for Escape Velocity
Built With
- canvas
- css3
- github
- html5
- javascript
- json
- localstorage
- node.js
- python
- react
- remotion
- svg
- typescript
- web-audio-api
