# Dance Call 3D: A Call-and-Response Rhythm Game

> Describe a dancer, a venue and a song, and your Agent builds a 3D call-and-response rhythm game in one offline HTML file. In the main example, Mika — an invented street dancer — performs on a neon rooftop: she calls a few moves on the song's own beats, you answer them with ← ↓ ↑ → (or four touch pads), a hit makes her nail the pose and adds that move's drum to the mix, eight hits in a row start a fever, and enough accuracy earns a finale where she dances her full clips to the tempo and takes a bow. The dancer, backdrop, song and crowd cues are generated through SandBase (gpt-image, Tripo text-to-3D, Meshy rigging and clips, Lyria, ElevenLabs); the beat chart, judging, stage and controls are code.

- 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/dance-call-3d

## What you get

Bring a character idea (or a drawing or figure photo), a venue, a music direction and, optionally, the BPM; the Agent writes the beat grid, chart, stage and rules. The Skill returns a downloadable Skill (the game project, a greybox prototype mode, a cost-reserving SandBase model-job helper, an offline build and a scripted play-through) and a playable example with its prepared media.

## Install

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

```text
/dance-call-3d turn <your character> on <your stage> into a call-and-response rhythm game with a <your music> song
```

## How it works

1. **Describe the dancer and the song** Tell your Agent an invented character — a standing humanoid for rigging — a venue and a music direction with a BPM, for example: a street dancer on a neon rooftop to a funky house track. On your machine with Node 22.14.0, the Agent runs node scripts/new-project.mjs my-game and npm ci, then writes project.json and src/game.json: the character prompt or your own drawing URL, two Meshy dance ids for the finale, the venue and music prompts, the title and colours.
2. **Generate the performer, then measure the song** npm run generate prints every SandBase call with its worst-case price under a budget cap before spending anything: a toy-render character, Tripo text-to-3D, Meshy rigging with idle, two dance clips and a bow, the venue picture, a Lyria song and four ElevenLabs crowd cues. npm run media then measures the encoded song itself — onsets, tempo and beat phase — into src/beatgrid.json, so the chart follows the real audio, not the requested BPM.
3. **Watch, then answer on the beat** Each phrase is one bar of call and one bar of response. Notes sit where the song itself hits, and the move comes from the loudest band: low is ↓, high is ↑, mid alternates ← and → — so the drum each move plays lands on a matching sound. Perfect is within 60 ms; eight hits start a fever; enough accuracy earns a finale where the dancer performs its full clips locked to the tempo, then takes a bow.

## FAQ

### How do the notes follow the music in Dance Call 3D?

The build measures the encoded song with spectral-flux onsets, autocorrelation tempo and a downbeat phase, and writes the grid into src/beatgrid.json alongside the song’s checksum — a grid measured on a different file fails the build. Each note goes where the song itself hits, and the move comes from the loudest band: low is ↓, high is ↑, and mid alternates ← and →.

### What counts as a hit, and what happens on a miss?

Perfect is within 60 ms, good within 110 ms and OK within 170 ms of the beat. Pressing during the call bar only shows “Watch first” — it is not a penalty — while an off-beat press during the answer costs a little crowd energy. A missed note makes the dancer stumble; enough accuracy triggers fever, the finale dance and a grade from S to D.

### Which SandBase models does Dance Call 3D use?

A generated character render (gpt-image, optionally edited from your drawing or figure photo), Tripo text-to-3D for the model, Meshy rigging with idle, two dance clips and a bow, a generated venue picture, a Lyria song and four ElevenLabs crowd cues — all billed to your SandBase account with per-call reservations. The beat grid, chart, judging, stage and controls are code, and the built file calls nothing at runtime.

### Is the game in English only?

Yes, the stage HUD is in English; this page is in English and Chinese. The example build is one offline file of about 3.6 MiB that needs WebGL 2 and makes no network request. Music and effects have separate toggles and start after you press Start.

### 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 Dance Call 3D on a phone?

Yes, four touch pads answer the beats and dragging the view looks around. The headless session drives the same touch controls at 390×844; it has been verified under touch emulation, not on real devices. Bluetooth audio can add latency the browser under-reports, so wired output or speakers are more accurate.

### 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

- Dance Call 3D playable rooftop stage (scene)
- Mika's Neon Rooftop (video)
