Marble Machine 3D: A 3D Rolling-Marble Puzzle from a Brief
- Skill de Lab
- v0.2.1
- Game creation
Describe a marble, a machine and its goal, and your Agent builds a 3D rolling-ball puzzle in one offline HTML file. In the main example, a glowing glass marble climbs a lighthouse mechanism in 140 seconds: it charges a copper switch, rides a moving bridge and dodges pistons to a receiver switch, then crosses to the goal once both switches open the gate. The brass generator, the music and the ambience are generated through SandBase; the platforms and the physics are code.
Ejemplos · 2

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 marble, a machine, its goal and a mood; the Agent writes the platforms, mechanisms, switches and story. 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 two playable examples with their prepared media.
Cómo funciona
- 01
Describe the marble and the machine
Tell your Agent what rolls, what machine it crosses, what it must switch on and the mood, for example: a dewdrop crossing a greenhouse irrigation rig to wake three sprinklers, with marimba music. On your machine with Node 22.14.0, the Agent runs node scripts/new-project.mjs my-game and npm ci, then writes src/project.json: rectangular platforms and planar slopes, moving bridges, sliding pistons, proximity switches with prerequisites, gates, blue checkpoint rings, recoveries and stage hints.
- 02
Roll a greybox, then generate the machine
Empty src/assets.json to { "assets": [] }, run ALLOW_PLACEHOLDERS=1 npm run build and PORT=8785 npm run serve, then check acceleration, inertia, climbing, braking, bridge width and framing: slopes must meet at matching heights and be climbable. The Agent checks SandBase 3D models for compatibility and price, then generates the central machine (a brass lighthouse generator here) plus SandBase music and rolling ambience; marble, platforms and pistons stay procedural. scripts/model-job.mjs reserves each job’s maximum under your total cap, keeping run IDs.
- 03
Roll the build and fall off once
npm run build inlines dependencies and media into dist/index.html, which runs with connect-src set to none. npm run shoot rolls east and north, brakes, falls, continues, restarts, flips the copper switch, rides the shuttle bridge and solves the machine. Then roll off an edge yourself: the recovery count should drop only after you choose Continue, and the marble should return to the last blue ring.
Preguntas frecuentes
How do recoveries work in Marble Machine 3D?
Marble Machine 3D gives the main example two recoveries. When the marble rolls off, the game stops on a fall screen; choosing Continue spends one recovery and puts the marble back at the last blue checkpoint ring with its switches kept. The narrow side spur awards an extra recovery to anyone willing to risk it. Once the recoveries are gone, a fall ends the run.
What physics does Marble Machine 3D simulate?
Marble Machine 3D simulates a sphere with inertia and friction rolling over rectangular platforms and planar slopes, colliding with boxes, riding moving platforms and touching proximity switches. Curved tracks, loops, magnets and multiple balls are not built in, and the Agent must add and test them as local extensions. The marble’s roll and the machinery’s motion are procedural, not skeletal animation.
Is the lighthouse machine in Marble Machine 3D solid?
No, the brass lighthouse generator in Marble Machine 3D is scenery. It is the only generated 3D model in the main example, and it has no colliders unless the Agent explicitly authors them. The marble, platforms, bridges, pistons, switches and gate are procedural geometry, which keeps the physics predictable when the generated model is swapped for another theme.
Which SandBase models are used by Marble Machine 3D?
Marble Machine 3D calls a SandBase text-to-3D model once for the central machine and SandBase audio models for music and a rolling ambience, while its sound cues are synthesized locally. All generation bills your SandBase account. Each job first reserves its maximum inspected cost against the total cap you set, so building a new theme cannot run past that cap.
Does Marble Machine 3D support Chinese?
Yes, Marble Machine 3D switches between English and Simplified Chinese with the language button, and both examples carry titles, intros and hints in both languages. Each build is one offline file, about 3.2 MiB for the main example, that needs WebGL 2 and makes no network request. Music and effects have separate toggles and start after you press Start.
Can I play Marble Machine 3D with touch?
Yes, Marble Machine 3D shows an arrow pad on touch screens that rolls the marble while held and stops pushing when your finger lifts, plus a BRAKE button. Up rolls toward the far platforms because the camera looks along the course. The automatic play-through rolls by touch, and the Agent checks the layout at desktop size and at 390×844.
Why use Marble Machine 3D instead of asking an Agent to write a marble game from scratch?
Marble Machine 3D supplies a tuned rolling engine, moving bridges that really carry the marble, piston collisions, switch sequences, gated goals, checkpoints and limited recoveries, all checked by a controller that applies the same forces a player would. Your Agent spends its effort on the machine’s layout and theme, and the greybox mode exposes an impossible layout before any model is generated.
Más Skills
Todos los Skills de Game creation →
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.

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.

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.

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.

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.

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.
