---
title: "ASHDRIVE"
url: "https://ashdrive.mattvalancy.com/"
description: "Open-world armored bike combat. Explore a grungy industrial district, fight drone gunships, raid military relays, and extract the intel. Built by Codex."
---

[Open this browser experience](https://ashdrive.mattvalancy.com/) · [Agent document index](https://ashdrive.mattvalancy.com/llms.txt)

This is the game guide, generated from the same repository as the interactive site. Markdown describes the experience; playing the 3D game requires a graphical browser.

# ASHDRIVE — Shadow Sector

![ASHDRIVE armored bike and industrial district](https://github.com/mvalancy/csci-40_f26_demos/blob/main/apps/ashdrive/docs/preview.png)

**[Play ASHDRIVE](https://ashdrive.mattvalancy.com)** · [Source (MIT)](https://github.com/mvalancy/csci-40_f26_demos/tree/main/apps/ashdrive)

An open-world combat sandbox: pilot a remotely controlled armored motorcycle and freely explore a hostile industrial district. Start on the ground at the motorpool, choose your route through factory yards and elevated freeways, fight interceptor drones and gunships, and raid three defended relays. Recover their data and return to the motorpool extraction pad when ready.

An original open-source browser game built for the AI App Lab code-off, inspired by the military vehicle combat of 1995's Cyberbykes. Heavy red armor, exposed weapons, concrete freeways, smoke and olive transport craft establish the setting. All graphics and audio are generated by this project; no historical game assets are included.

## Play

| Control | Action |
| --- | --- |
| WASD / arrow keys | Throttle, reverse, steer |
| Space | Cannon |
| Shift | Turbo boost |
| Q | Guided missile |
| E | EMP |
| C | Cycle chase, cockpit, tactical camera |
| Tab / Map button | Tactical map; gameplay pauses while open |
| P | Pause / resume; Escape also resumes |
| M | Audio toggle |

Road lanes are optional routes through the district. Explore and approach objectives in any order, with no laps or race countdown. Destroy each relay with cannon fire or a missile, then drive within 10 meters of its dropped data case. Recover all three and return to the marked extraction pad where the mission started. Field supplies repair armor and replenish missiles. The **Autonomous Sortie** option demonstrates combat. The tactical map shows optional freeway routes, numbered relay status, enemies, your position and the motorpool extraction pad. Touch controls appear on supported small screens. While paused, Tab selects between Resume and Return to Hangar.

Rendering prefers **WebGPU**, with a **WebGL 2 fallback**. A modern browser with either backend is required; WebGPU normally requires HTTPS or localhost. Add `?renderer=webgl` to explicitly select the fallback. Audio starts after interaction. Once loaded, gameplay makes no external network requests; a first visit still needs the site's files.

## Graphics and performance

**Auto Quality** starts with a conservative rendering budget based on device capabilities. Performance and Balanced tiers remove bloom and shadows; High Detail and Ultra Detail enable those effects. Auto remembers the learned budget across retries and waits before increasing detail or retrying an expensive tier.

Emergency resolution scaling uses fresh GPU timings when supported: it avoids reducing clarity when low FPS comes from delays outside the game's GPU workload. If GPU timing is unavailable, it falls back to sustained frame rate. Under genuine rendering pressure it can step down to 35%, then restore resolution gradually when there is headroom. The HUD reports FPS and rendering scale.

Use the graphics selector to choose **Auto Quality**, **High Detail**, **Ultra Detail**, **Balanced**, or **Performance**. Manual choices remain fixed. Browser size, device pixel ratio and a pixel budget limit the actual resolution, so the displayed percentage can be lower than a tier's cap.

URL overrides are supported: `?quality=low`, `?quality=medium`, `?quality=high`, `?quality=ultra`, or `?quality=auto`. Combine options as `?renderer=webgl&quality=low`. Developers can add `?profile=1` for optional diagnostics; profiling is not required to play or use automatic quality. Performance still depends on the device and other active applications.

See [Performance architecture](https://github.com/mvalancy/csci-40_f26_demos/blob/main/apps/ashdrive/docs/PERFORMANCE.md) for implementation details and validation boundaries.

## Development and deploy

ASHDRIVE lives in the class monorepo, [mvalancy/csci-40_f26_demos](https://github.com/mvalancy/csci-40_f26_demos) (MIT), next to Claude's REDLINE MX. It uses the lab's single root dependency installation; there is no package.json inside this folder. From the repo root (Node.js 22.12+):

```sh
npm ci
npm run dev                         # lab hub → /apps/ashdrive/
npm run show ashdrive --right       # headed browser tests (right half of the screen)
npm run test:ashdrive               # pure unit tests (node --test)
npm run build:ashdrive              # static build → apps/ashdrive/dist/
npx vite preview --config apps/ashdrive/standalone.vite.config.js --port 4175
```

**Deploys are automatic.** The Cloudflare Pages project `csci-40-week-01-ashdrive` is Git-connected to the monorepo. Every push to `main` that touches `apps/ashdrive/` (or the root `package.json` / lockfile) runs `npm ci && npx vite build --config apps/ashdrive/standalone.vite.config.js` on Node 22 and publishes `apps/ashdrive/dist/` to **[ashdrive.mattvalancy.com](https://ashdrive.mattvalancy.com)** (alternate: [csci-40-week-01-ashdrive.pages.dev](https://csci-40-week-01-ashdrive.pages.dev)). `public/_headers` supplies static asset caching and response headers; the game needs no server.

Manual fallback with an authenticated Wrangler: `npm run build:ashdrive && npx wrangler pages deploy apps/ashdrive/dist --project-name csci-40-week-01-ashdrive --branch main`.

DNS for the custom hostname:

| Type | Name | Target | Proxy |
| --- | --- | --- | --- |
| CNAME | `ashdrive` | `csci-40-week-01-ashdrive.pages.dev` | Proxied |

Official documentation: [Wrangler Pages commands](https://developers.cloudflare.com/workers/wrangler/commands/pages/), [Pages custom domains](https://developers.cloudflare.com/pages/configuration/custom-domains/).

## License and reference

[MIT](https://github.com/mvalancy/csci-40_f26_demos/blob/main/apps/ashdrive/LICENSE), copyright 2026 mvalancy, covers this project’s original source. Three.js is bundled under its own MIT license; its complete copyright and license notice is preserved in [public/THIRD_PARTY_LICENSES.txt](https://github.com/mvalancy/csci-40_f26_demos/blob/main/apps/ashdrive/public/THIRD_PARTY_LICENSES.txt), also shipped at `/THIRD_PARTY_LICENSES.txt` in the built site. Development packages retain their respective licenses in their installed distributions. [REFERENCE.md](https://github.com/mvalancy/csci-40_f26_demos/blob/main/apps/ashdrive/REFERENCE.md) records historical design research and links; it contains no original game assets.

