Skip to content

About

Hover-bike racer built in Codex with GPT-6.2 Astra —playable game, the 6 prompts and the sand-lens skill

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Solar Drift

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/

Solar Drift title screen

Racing through the canyon shade The explosion mid-race
Rook on the Iron Mule

What's in here

  • 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.js and friends.

Controls

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.

Use the sand-lens skill in your own project

  1. Copy the skills/sand-lens folder into your project (keep the folder name).
  2. 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.

Run it locally

npm install
npm run dev

Build a static copy with npm run build (output in dist/).

Credits

  • 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).

License

MIT

About

Hover-bike racer built in Codex with GPT-6.2 Astra —playable game, the 6 prompts and the sand-lens skill

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages