Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Magnet Salvage: A 3D Magnet-Carrying Puzzle from a Brief

Describe a hero, a setting and a machine to restore, and your Agent builds a 3D puzzle in one offline HTML file where a small character carries metal parts with a magnet and sets each one in its socket. In the main example, Bolt the salvage robot has 180 seconds of battery to open an airlock with a counterweight, bridge a trench and dock the energy core. The hero, the parts, the music and the sound effects are generated through SandBase; the level, the rules and the lighting are code.

Contoh · 2

Magnet Salvage playable level
Buka di tab baru

Berjalan di frame sandbox tanpa akses ke halaman ini.

Jalankan online

Jalankan di sandbox SandBase dan lihat hasil Anda di Lab.

Buka di Lab ↗

Apa yang Anda dapatkan

Bring a hero, a setting, a machine to restore and a mood; the Agent turns them into a new story, level and set of parts. 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.

Cara kerjanya

  1. 01

    Describe the hero and the machine

    Tell your Agent who carries the parts, where, what must be restored and the mood, for example: a wind-up tortoise in a flooded lighthouse, three brass parts that restart the lamp, a calm sea-shanty mood. The Agent runs node scripts/new-project.mjs --out my-game and writes one theme folder with the story, the socket order, the walls and one prompt per generated model and sound.

  2. 02

    Quote and generate the salvage media

    With a SandBase login or SANDBASE_API_KEY, run npm run assets -- --theme <id> --budget <n>, where n is the most you choose to spend on this theme. It lists every SandBase call: text-to-3D for the hero and each part, segmentation that splits the hero into a wheel and arm joints, a music model and a sound-effect model. Over-budget plans are refused before billing. With --confirm-real the calls run and bill your SandBase account.

  3. 03

    Build one offline file 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 npm run build:single. dist-single/index.html holds the game, models and audio, offline and model-free in play. npm run shoot -- --spec themes/<id>/verify.json drives a local Chrome through the title, Start, lift, release, autopilot win, battery loss, retry, mute and 390×844 phone taps. In npm run preview:sandbox, the core stays unreachable until the bridge cell docks, and the objective ends at 3 / 3.

FAQ

What kind of game does Magnet Salvage make?

Magnet Salvage makes a short top-down 3D puzzle in which a small hero carries metal parts with a magnet and docks each one before a power meter empties. Order matters: in the main example the counterweight opens an airlock, the bridge cell spans a trench, and only then can the energy core reach its dock. It does not make platformers, physics sandboxes or levels with enemies.

Which SandBase models does Magnet Salvage call, and who pays?

Magnet Salvage calls SandBase only during npm run assets: a text-to-3D model for the robot and each salvage part, a segmentation model that splits the robot into a wheel and arm joints, a music model and a sound-effect model. Those calls are charged to your own SandBase account. The script prints a quote first and refuses any plan above the --budget figure you type for that theme, so nothing bills until you add --confirm-real.

Is the magnet a real physics simulation?

No, Magnet Salvage fakes the magnet on purpose. The robot moves kinematically against authored collision walls, a lifted part rides along and cuts its speed from 4.6 to 2.8, and a part released within 1.8 units of its socket snaps into place and locks. Parts cannot tumble, stack or be thrown, which keeps each salvage level solvable and lets the autopilot finish it the same way on every check.

Does the finished salvage game need an internet connection?

No, a built Magnet Salvage level plays offline. npm run build:single packs the code, the generated robot and parts, the music and the sound effects into one HTML file that sends no request and calls no model during play. Any recent browser with WebGL 2 should open it; how well it runs on a particular phone or laptop was not measured for this page.

How big is the Magnet Salvage file, and what is inside?

Each Magnet Salvage example is one HTML file of about 3.5 MiB. It contains Three.js, the level code, Bolt and the three parts as compressed models, the music loop and every sound effect. The second example, Clank in the bell foundry, is a separate file built with THEME_DIR=themes/<id> npm run build:single. The in-game text is English only, while this page is in English and Chinese.

Can Magnet Salvage be played on a phone?

Yes, Magnet Salvage shows a joystick plus Magnet and Release buttons on touch screens, each at least 44 CSS pixels across. Every build check taps them in a 390×844 viewport before the file is accepted. On a desktop the same level uses WASD or the arrow keys to roll, E to lift a nearby part and Space to let it go above a socket.

Skill 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 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 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 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 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 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.