---
name: voxel-temple-flight
description: Build an interactive voxel sanctuary with a coiling dragon, articulated wings, a tiered pagoda and editable procedural geometry in one offline HTML.
version: 0.1.0
---

# Voxel Temple Flight

A jade dragon coils around a five-tier crimson pagoda. Its body moves as a continuous chain of voxel cross-sections, its coral wings beat at articulated joints, and the live camera reveals the island's cherry trees, water channels and stone steps.

## Example

```sh
node scripts/fill-prompt.mjs --slots assets/prompts/examples/jade-sanctuary.json --out prompt.md
node scripts/new-project.mjs --out my-sanctuary
cd my-sanctuary && npm ci
npm run dev
npm run build:single
npm run shoot -- --file dist-single/index.html
```

Give the filled prompt and generated project to your coding agent. Edit `src/main.ts` to change the creature's chain, pagoda tiers or palette. Every object is generated from code. The output is a single offline HTML plus English and Simplified Chinese verification reports.

## Controls

Drag the scene to orbit. Use the wheel or Zoom button to change framing. Pause flight, change its speed, stop the wingbeats, switch daylight and dusk, or reset the camera. Optional synthesized tones start only after a gesture and are initially muted. Reduced motion starts paused.

## Verification and hosting

The screenshot script proves controls with real mouse/touch actions, before/after state and pixel differences. It tests both languages, desktop, mobile, the 345 by 345 embed, reduced motion, deterministic capture, offline CSP and audio lifecycle. The maintainer publisher runs first-party source in a temporary build with no credentials and a loopback server. The same commands can run in a SandBase Sandbox. Headless FPS is indicative, not physical-device acceptance.

## Credentials and failure boundaries

No model key or runtime network is needed. Development installs pinned npm dependencies. Missing Chrome prevents screenshot verification. A missing WebGL context shows a localized failure. The page needs hardware acceleration; low quality reduces the moving chain and disables shadow maps. Optional tones are synthesized, not a recording.

## FAQ

- Can I change the theme? Yes. Creature, sanctuary and palette are prompt slots; geometry is editable source.
- Are models or textures downloaded? No. Voxels, colors and movement are generated in the browser.
- Is the motion physically simulated? The dragon follows an authored procedural path; it is not an aerodynamics model.
- Can it export video? The deterministic capture contract supports the included recorder.
