Strafe
Thread between cacti and pterodactyls. Three lanes, instant direction changes, nowhere to hide.
A three-lane, real-time 3D endless runner. Jump cacti, duck pterodactyls and chase the global board. No downloads, no account — just WebGL and a keyboard.
INITIALIZING WEBGL WORLD
SCORE
000000
SPEED
054KM/H
SHARDS
00
BEST
000000
SWIPE ← / → LANES · ↑ JUMP · ↓ DUCK
Three lanes. One T-Rex. Duck the pterodactyls, clear the cacti and collect every orange shard you can.
OR PRESS SPACE
Global records / top 8
Every saved run is validated, ranked and written to the database. Only records returned by the database appear here.
YOUR PERSONAL BEST
000000
Play a run to claim it
Connecting to board
SYNCING RUNS
Connecting to the score service.
GLOBAL LEADERBOARD
Loading runs
Controls / flow state
Change lanes to avoid obstacles, jump over cacti and duck under flying pterodactyls. Collect the center-height shards as you go.
Thread between cacti and pterodactyls. Three lanes, instant direction changes, nowhere to hide.
Clear ground cacti at the last second. Timing counts — the run gets faster every second.
Pterodactyls hunt at head height. Drop low, keep your line and let them scream overhead.
SYSTEM
The run pauses itself when you switch tabs or scroll the game out of view.
SCORE FORMULA
DISTANCE × 1.6
+ SHARDS × 50
Every saved run is validated, ranked and written to the global board.
LIVE PACE
0 → 50km/h
Speed climbs continuously. There is no finish line and no second chance.
Under the hood / engineering
The game is rendered client-side, but the product is not a toy: a typed API, validated persistence, cached database connections and a test suite that exercises the actual game rules.
React 19
3D canvas + HUD state
Route Handler
Zod + rate limiting
Database
Ranked score collection
Next.js 16
App Router · Route Handlers · Server-first UI
React Three Fiber
Three.js scene graph · 60 fps game loop
Database
Cached connection · ranked score schema
Zod
Runtime validation · typed API boundaries
Jest + RTL
Engine unit tests · component rendering
Tailwind CSS v4
Token-driven light / dark themes
100% TYPE-SAFE GAME ENGINE
ZERO SPRITE ASSETS
REAL RECORDS ONLY
Selected work / beyond the run