# Borrowed Shadows: A Lantern-Shadow Bridge Across the Canal

> A finished short puzzle in one offline HTML file. On Lantern Festival night the wooden bridge over a canal is out: slide a paper lantern along its rail so a carved railing's real spot-light shadow reaches the far stone steps, and a porter carrying new lanterns crosses it to a waiting child as the festival lanterns light one by one. All thirteen models — the rigged porter and child plus eleven static pieces — are generated through SandBase; the water, sky, glow, the shadow bridge and the rules are code. No combat, no timer, no sound.

- 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/borrowed-shadows

## What you get

Bring nothing to write: the level ships finished. To tune it, edit the layout constants, the rule, the beats, the camera and the English/Chinese copy in the project. The Skill returns a downloadable Skill (the toon-shaded shadow-bridge engine, the generated models inlined, a customization guide, verification) and one playable example, Lantern Canal, with its generated media and billed cost.

## Install

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

```text
/borrowed-shadows ship a finished lantern-shadow bridge puzzle, or ask your agent to tune <the gap, the rail, the lantern, the target or the copy> in its project
```

## How it works

1. **Open the finished level** The Skill is not a generator: thirteen models made on SandBase (Meshy image-to-3D and rigging, gpt-image references) ship inside one offline HTML file. On your machine with Node 22.4 or later, node scripts/new-project.mjs --out my-shadows copies the working project and npm ci installs it. The interface is in English and Simplified Chinese.
2. **Slide the shadow into place** A real spot light above the sliding lantern casts the carved railing’s shadow onto the water, and the same projection function that draws the glow decides the aligned() check — the picture and the rule never disagree. Drag the lantern along the rail (or nudge with Up/Down) until the shadow touches the far steps and its edge lights up.
3. **Send the porter** Press Cross too early and the porter tests the water, steps back and waits. Aligned, he carries his pole of paper lanterns across the shadow, bows to the child on the far steps, and the festival lanterns along the bank light one by one. One level, about 20–40 seconds; Play again resets it.

## FAQ

### Does Borrowed Shadows call a model or need a key?

No. Every model and animation was generated once through SandBase on 2026-11-22 and ships inside the file — Meshy 7.0 for the two rigged characters, Meshy 6.0 lite for the eleven static pieces, gpt-image for the references; CREDITS.json lists all 37 runs, 10.28 USD. The Skill and the built game call nothing at runtime.

### How does the shadow bridge work?

The lantern is a real spot light, the railing a real occluder and the water a real receiver — the shadow map you see is the same projection the game measures. endZAt computes where the shadow ends on the water; aligned() passes when that end reaches the far steps within TOLERANCE, and the same value drives the glow. There is no separate physics or hitbox to disagree with.

### Can I make it harder or add a level?

TOLERANCE is the only difficulty knob; TARGET_Z, NEAR_EDGE, FAR_EDGE and the lamp constants reshape the gap and the rail. A second level on the same engine and mechanic is a documented edit in references/customize.md.

### Which languages does the game have?

English and Simplified Chinese, switchable inside the game; the headless check drives both. There is no audio at all — no music and no sound effects.

### Why is the demo sandboxed?

The frame has an opaque origin and no network access, so the scene can’t read anything from this page or reach the internet.

### Can I play Borrowed Shadows on a phone?

Yes. Dragging the lantern is a touch gesture and Cross is a button of at least 44 px; the headless check drives drag and alignment at 390×844 under touch emulation. It has not been tested on real devices. The file is about 3.8 MB and needs WebGL 2 and WebAssembly.

### Why is there no online generation?

Building a new scene needs a model key inside the sandbox, which the backend doesn’t support yet. Run the Skill with your own agent for now.

## Examples

- Borrowed Shadows playable lantern canal (scene)
- Lantern Canal (video)
