# Dragon Rescue: A 3D Flying Rescue Game from a Brief

> Describe a flying hero, a sky to cross and who needs saving, and your Agent builds a 3D flight-and-rescue game in one offline HTML file. In the main example, Ember the baby dragon ferries three islanders one at a time from floating islands to the rescue camp, slowing down to land and riding golden updrafts to refill energy. The dragon, the passenger, the camp, the music and the sound effects are generated through SandBase; the islands, the flight model and the lighting are code.

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

## What you get

Bring a flying hero, a place, the passengers and a mood; the Agent writes the islands, the route and the story. The Skill returns a downloadable Skill (the game project, a quoted and budget-capped SandBase asset step, a single-file build and a play-test) and two playable examples with their prepared media.

## Install

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

```text
/dragon-rescue build a 3D flying rescue where <your flyer> carries <your passengers> across <your sky> to <your safe place>, in a <your mood> mood
```

## How it works

1. **Describe the flyer and who needs help** Name a flying hero, a sky, the passengers and a safe place, plus the mood, for example: a paper-kite fox over flooded rice terraces, four stranded ducklings, a hilltop shrine, gentle flute music. The Agent runs node scripts/new-project.mjs --out my-game, then sets island heights, updraft rings, landing rings and the passenger order in a new theme with prompts for every model and sound.
2. **Quote the flight assets before buying** Call npm run assets -- --theme <id> --budget <n>; the value n is the per-theme spending ceiling you decide on. The quote lists text-to-3D for the dragon, the passenger and the camp, a segmentation model that splits the wings off for flapping, a music model and a sound-effect model. It refuses any plan past n without billing. Only --confirm-real submits, charging your SandBase account; generation needs a SandBase login or SANDBASE_API_KEY, which the scripts redact.
3. **Build the sky and play-test it** With Node 22.14.0 and FFmpeg, run npm ci, npm run restore, which re-checks prepared media by SHA-256 and downloads only missing files, and npm run build:single. dist-single/index.html is the whole game, flying offline with no model. npm run shoot -- --spec themes/<id>/verify.json flies Chrome through the title, Start, throttle, steering, climbing, descending, a rescue, an autopilot win, a splash-down loss, retry, mute and 390×844 phone taps. In npm run preview:sandbox, E lands only after braking low over the ring.

## FAQ

### How do you land and rescue in Dragon Rescue?

In Dragon Rescue you land by braking with S and holding Shift until the dragon is slow and low over an island’s ring, then pressing E. The prompt changes to Pick up when a passenger is waiting and to Deliver or rest at the camp. Only one islander rides at a time, so the main example needs three round trips from islands at heights of 6, 9 and 13.

### Which models does Dragon Rescue use, and where is it billed?

Dragon Rescue uses a SandBase text-to-3D model for the dragon, the passenger and the camp, a segmentation model that separates the wings so they can flap, a music model and a sound-effect model. Each call is billed to your SandBase account. Before anything is submitted, npm run assets prints the full plan with a quote and rejects it if it passes the --budget ceiling you pass in.

### Is the flying realistic?

No, Dragon Rescue uses arcade flight rather than aerodynamics. Speed, turn rate, climb and descent are simple tuned values, the wings flap faster as the dragon speeds up, and energy is the only resource: climbing spends it, carrying spends it faster, and updraft rings or the camp restore it. Wind, stalls and collisions with clouds are not modelled.

### Does the dragon game work offline?

Yes, every Dragon Rescue example is one HTML file of about 3.0 MiB that plays with no connection. Three.js, the island scenery code, the generated dragon and passenger, the music and the sound effects all sit inside the file, and no request or model call happens in flight. A WebGL 2 browser is required; speed on particular devices was not benchmarked for this page.

### Can children fly Dragon Rescue on a tablet?

Yes, Dragon Rescue works on touch screens and has no countdown in the main example, so a slow pilot is not punished. A joystick steers, Climb and Descend are hold buttons, and Rescue picks up or delivers; each control is at least 44 CSS pixels. The only way to lose is running out of energy and dropping into the sea, which retry undoes at once.

### What does my computer need to make a Dragon Rescue theme?

A Dragon Rescue theme is made on your own computer with a coding Agent, Node 22.14.0, FFmpeg and a local Chrome for npm run shoot. Generating new models and music also needs a SandBase login or a SANDBASE_API_KEY in the environment; the key is never printed. Rebuilding the two shipped examples needs no account, because npm run restore reuses their verified media.

## Examples

- Dragon Rescue playable flight (scene)
- Sirocco: Gale Courier (scene)
- Ember’s First Rescue (video)
- Sirocco: Gale Courier (video)
