# Duskline Watch: Hold the Line from Dusk to Dawn

> Hold a watch line as the sun drains, in one offline HTML file: a brass flare-gun casts bolts at ember-lit shades, night packs the waves and dawn brings the lull before the next. One cycle value drives the sun drain, the light and the spawn pressure together. WASD, mouse aim, cast, reload and crouch, in an amber-dusk look.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Game creation](https://www.sandbase.ai/skills/games)
- Version: 0.1.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/games/duskline-watch

## What you get

Bring the frontier, the shades and the weapon, and optionally the cycle and wave timing, the cast feel, the HUD layout and the UI text. The Skill returns a downloadable Skill (the survival-watch project, a customize guide, headless verification) and one playable example run.

## Install

Download the Skill package from https://www.sandbase.ai/skills/games/duskline-watch (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/duskline-watch make a survival watch at <your frontier>, where the player holds <your line> through <your night>
```

## How it works

1. **Create the watch project** Duskline Watch starts with node scripts/new-project.mjs --out my-watch, then npm ci inside the folder. That pulls pinned Vite, three.js and playwright-core from the public npm registry. A prompt such as "Use duskline-watch to make a survival watch at a mountain pass" sets the frontier, the shades and the weapon; references/customize.md says where cycle timings, wave mix, shade finish, gun, palette, HUD and audio live.
2. **Tune the dusk cycle** The game counts daylight through DUSK, NIGHT and DAWN in a strip at the top. One cycle value drives the sun drain, the light and the spawn pressure together, so shades swarm hardest in the dark and ease at dawn. WASD moves, the mouse aims, a click casts the brass signal gun's ember bolt, R reloads and C crouches. npm run dev gives a live preview.
3. **Build, shoot and check** npm run build:single writes dist-single/index.html, about 15 MB, which opens with a double-click in a WebGL browser. npm run preview:sandbox serves it under the sandbox CSP, and npm run shoot plays it headlessly in local Chrome, SwiftShader included. Read shots/*.jpg and shots/report.json and repeat until all 23 checks pass, covering dusk start, nightfall, an advancing wave, moving, casting and a phone run.

## FAQ

### What kind of game is Duskline Watch?

Duskline Watch is a single-file 3D wave-survival shooter in three.js. You hold a line against ember-lit shades with glowing chest cores and cyan eyes while the sun drains. Waves thicken at night and ease at dawn before the next one is counted. Health and ward drops land from downed shades, and the HUD groups vitals, ward, ember cast and down count.

### Does Duskline Watch need an API key?

No. Duskline Watch needs no key and calls no model, so playing or building it is not billed. Only npm ci reaches the network, to fetch pinned packages. In the page itself every model and texture is bundled, the sky, ground and walls are drawn on canvas, and all sound is synthesised with WebAudio after the first click.

### How big is the Duskline Watch HTML file?

Duskline Watch builds to about 14.5 MiB. Eleven packed .glb models account for most of that, which makes it the heaviest scene on the site, so the loader shows progress.

### Does Duskline Watch work inside a sandboxed iframe?

Duskline Watch works in a sandboxed iframe with one limit. It requests pointer lock only when the page runs top-level. Inside a sandboxed iframe aiming still works, but the cursor is not captured.

### What does Duskline Watch not do?

Duskline Watch does not model real weapon ballistics; the gun is a stylised ember caster with spread and recoil on the projectile path. It has no multiplayer, fetches no models or audio at runtime, and its shades read as creatures rather than the undead. The UI ships in English only. A new creature needs a packed .glb plus a notice entry.

## Examples

- Duskline Watch survival game (scene)
- Duskline Watch (video)
