Public
š Insanely juiced neon snake game ā mobile-ready, leaderboard
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data ā all from the browser, and deployed in milliseconds.
An absurdly juicy arcade snake game. Fully playable on desktop and mobile, with a global SQLite-backed leaderboard.
Play it: the val's HTTP endpoint (main.ts).
- 3 game modes ā Classic, š Hardcore (faster, extra hazards), š§ Zen (no death, wrap-around walls, tail-trim mercy)
- 5 food types ā Data Bits, Gold Cores, Prism Shards (trigger a food FRENZY), Corrupted Bits (shrink you), pulsing MEGA Cores
- 7 power-ups ā Shield, Ghost, Magnet, Slow-Mo, Turbo, 2X Score, Trim
- Hazards ā neon firewalls, blinking proximity mines, patrolling AI drones
- Portal pairs that teleport you across the board
- Combo system ā chain food within the timer for up to a x10 multiplier
- Infinite levels ā 10 named sectors, then endless escalation; every level reshapes the board and shifts the palette
- Procedural audio ā all SFX and the adaptive synthwave soundtrack are synthesized live with WebAudio (zero audio files); music tempo rises with your level
- Full FX suite ā particles, shockwave rings, screen shake, floating combat text, parallax starfield, death slow-mo cascade
- Mobile-first controls ā swipe anywhere (chainable without lifting your finger), optional virtual D-pad, haptic feedback, safe-area aware layout. Gamepads work too.
- Meta progression ā 20 achievements, 6 unlockable skins, lifetime stats, per-mode personal bests (localStorage)
- Global leaderboard ā per-mode top scores stored in the val's SQLite DB, with a server-side sanity check against impossible scores
Rendering mermaid diagram...
- Fixed-timestep simulation with interpolated rendering (buttery at any frame rate)
- Direction queue buffers two turns so fast inputs never drop
- DPR-aware canvas sizing for crisp rendering on high-density phone screens
| Input | Action |
|---|---|
| Arrows / WASD | steer |
| Swipe (mobile) | steer ā keep your finger down and keep swiping |
| Space / P / Esc | pause |
| D-pad buttons | steer (auto-shown on touch devices) |