A hover-bike time trial through a golden-hour desert canyon, in the browser. Real 3D with three.js. Built in Codex with GPT-6.2 Astra from five prompts (plus a bonus one), without writing the code by hand.
▶ Play it: https://souranyp-stack.github.io/solar-drift/
![]() |
![]() |
![]() |
- PROMPTS.md: every prompt used to build the game, in order, plus the Codex settings.
- DESIGN.md: the design doc from prompt 1 that keeps the whole build consistent.
- skills/sand-lens: a reusable Codex skill for sand hitting the camera lens when you drift or boost. Dependency-free, works in any browser game.
- The game itself:
index.html,main.jsand friends.
| Key | Action |
|---|---|
| W / ↑ | Thrust |
| S / ↓ | Brake |
| A D / ← → | Steer |
| Space | Drift (hold while steering) |
| Shift | Boost |
| R | Restart the lap |
| Esc | Pause |
Three pilots: Vale on Slipstream, Kite on Needlewing, Rook on the Iron Mule. Twelve saffron gates, one lap, beat your personal best.
- Copy the
skills/sand-lensfolder into your project (keep the folder name). - In Codex, ask for it by name, for example: "Use the sand-lens skill to add sand hitting the camera when the player drifts or boosts."
Or use the module directly:
import {createSandLens} from './skills/sand-lens/assets/sand-lens.js';
const lens = createSandLens(overlayCanvas, {capacity: 96, density: 1});
lens.resize(width, height, devicePixelRatio);
// every frame, in seconds:
lens.update(dt, {drift: slide, boost: boost, side: spraySide});See SKILL.md for the details.
npm install
npm run devBuild a static copy with npm run build (output in dist/).
- Inspired by Meng To's cyberpunk driving game made with GPT-6.2 Astra, and his open-source skills.
- Launch button adapted from ThreeUI (MIT, see
public/licenses/ThreeUI-LICENSE.txt). - Sky and surface textures derived from CC0 assets from Poly Haven (see
public/licenses/Canyon-assets.txt).
MIT



