Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Stack & Topple: A 3D Physics Toy from a Brief

Write four lines (setting, hero, props, mood) and get a 3D physics toy with two modes in one offline HTML file: stack eight generated objects into a wobbling tower, then knock a two-stack tower down with kicks and a slingshot. The hero, six props, the sky, the voice and the music are generated through SandBase; the yard, both modes and the Rapier physics are code.

Ejemplo

Stack & Topple playable physics toy
Abrir en una pestaña nueva

Stack & Topple playable physics toy

El ejemplo se ejecuta en un marco aislado, sin acceso a esta página.

Ejecutar en línea

Ejecuta en un sandbox de SandBase y consulta los resultados en Lab.

Abrir en Lab ↗

Qué obtienes

Bring a setting, a hero, six props and a mood; optionally the palette, landmark and music. The Skill returns a downloadable Skill (the physics-toy engine, a budgeted 3D asset generator with rigging, verification) and one playable example with its generated media and billed cost.

Cómo funciona

  1. 01

    Fill the slots

    Describe the setting, the hero, the six props and the mood, for example a misty mountain tea terrace at sunrise, a cheerful tea picker, a tea crate, a bamboo steamer, a stone lantern, a clay teapot, a woven tray and a jade frog. The agent turns the brief into a theme.

  2. 02

    Plan and generate the media

    npm run assets prints every SandBase call with its worst-case estimate and refuses a plan over the budget, without spending. With --confirm-real it makes the calls through your logged-in sandbase CLI or SANDBASE_API_KEY, saves each run id at once so --recover can download finished runs without paying again, and compresses the rigged hero and the six props. The example made 26 calls and billed a few US dollars.

  3. 03

    Build and verify

    THEME=<id> npm run build:single inlines Three.js, both modes, Rapier physics (WebAssembly inlined), the rigged hero, the six props, the sky and every sound into one file that makes no network requests. npm run shoot runs the scene-verify checks. The example passed 38 of 38 checks.

Preguntas frecuentes

Does Stack & Topple call a model or need a key?

Only while your agent builds a theme. The asset step calls SandBase models for the rigged hero, the six props, the sky, the voice and the music, through your own SandBase login, and the scripts never read, print or store the key. Once built, the yard page itself makes no network requests and calls no model. Nothing is billed without --confirm-real.

How is Stack & Topple usage billed?

Stack & Topple’s asset step calls SandBase models for the models, sky, voice and music, billed to your SandBase account. Every planned call is listed with its worst-case price before anything runs, an over-budget plan is refused, and billing starts only with --confirm-real. Current model prices come from sandbase inspect.

Why is the yard inside a frame?

The physics toy has no network and an opaque origin, so it cannot read this page or reach the internet — you play the verified build.

Can the props be my own objects?

Yes — the six props can be your objects. Put your own GLB files in the theme’s media folder, skip generating those parts, and record their source and licence in CREDITS.json.

Why does the game use WebAssembly?

The Rapier physics engine compiles to WebAssembly for rigid-body stacking and toppling; it is inlined in the file, so the demo is served with the game-sandbox policy.

Can this page build a new yard?

Not yet — building a theme calls SandBase models and the sandbox has no key for that. Run the Skill locally with your own agent for now.

Skill de Lab · Games

Seagull Swoop

Build a 3D flight-and-delivery game with light fries, heavy fish, crosswinds and optional ring routes. The gull must bring lunch home; cargo weight changes which openings it can safely reach.

Skill de Lab · Games

Wedding Cake Wobble

Build a 3D fragile-cargo delivery game around a wobbling wedding cake. Brake before turns, avoid crossing guests and steer around tables. Lost tiers change the score, while a partial delivery can still succeed.

Skill de Lab · Games

Hermit Tide

Build a 3D route-and-timing game where a hermit crab changes shells to cross a tidal shore. Narrow gaps favour the cap, stronger shells resist waves, and dry stones provide shelter and checkpoints.

Skill de Lab · Games

Clover Circuit: Estate Cut

Drive a coral ride-on mower through a fenced estate garden. Steering, braking and the moving blade cut actual grass tufts; Overview reveals the genuine trail. Edit three gardens and three scene palettes offline. Coverage counts trimmed tuft centers rather than continuous ground area.

Skill de Lab · Games

Glide Gates: Lagoon Run

Flap a golden bird through emerald pipe pairs above a turquoise lagoon. Actual fixed-step gravity, swept circle contacts and full-gate scoring power both manual flight and clearly labeled practice. Edit three courses and three scene palettes offline.

Skill de Lab · Games

3D Interactive Garden Islands

Walk a curved garden, harvest fruit, share gifts, catch butterflies, fish, grow flowers and craft furniture. Four lighting states and one offline HTML with bilingual keyboard and touch controls.