Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Tide Fortress: A 3D Tower Defense Game from a Brief

Describe a hero, a home to protect and the invaders, and your Agent builds a 3D tower defense game in one offline HTML file. In the main example, Pipkin the teacup hermit crab spends shells on conch cannons across eight pads and holds a beach nursery through three tides of sea urchins. The crab, the cannon, the urchin, the nest, the music and the sound effects are generated through SandBase; the shore, the path, the waves and the projectiles are code.

Esempi · 2

Tide Fortress playable defense
Apri in una nuova scheda

Funziona in un frame isolato, senza accesso a questa pagina.

Esegui online

Eseguilo in un sandbox di SandBase e visualizza i risultati in Lab.

Apri in Lab ↗

Cosa ottieni

Bring a hero, a place, what attacks it and what must survive, and a mood; the Agent writes the path, pads, waves and story. 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.

Come funziona

  1. 01

    Describe the defender and the invaders

    Tell your Agent who defends, what home must survive, what attacks and where, plus the mood, for example: a hedgehog gardener guarding a strawberry patch from snails on a moonlit allotment, acorn catapults, banjo music. The Agent runs node scripts/new-project.mjs --out my-game and writes the path, the numbered pads, tower stats, wave sizes, the currency and every model and sound prompt.

  2. 02

    Quote the defenders before generating

    With a SandBase login or SANDBASE_API_KEY, npm run assets -- --theme <id> --budget <n> prints the plan, with n standing for the ceiling you set for that theme. It covers text-to-3D for the hero, the tower, the invader and the home, a segmentation model that gives the hero leg and claw joints, a music model and a sound-effect model. A plan over n is refused before billing; --confirm-real bills your SandBase account.

  3. 03

    Build the shore and play-test it

    With Node 22.14.0, FFmpeg and Chrome, run npm ci, npm run restore, which re-verifies prepared media by SHA-256, and npm run build:single. dist-single/index.html holds the whole defense, offline and model-free. npm run shoot -- --spec themes/<id>/verify.json covers the title, Start, pad selection by key and click, building, upgrading, starting a tide, an autopilot win, a loss, retry, mute and 390×844 phone taps. In npm run preview:sandbox, leave a gap: each urchin reaching the nest removes exactly one heart.

FAQ

How do you win a round of Tide Fortress?

You win Tide Fortress by keeping at least one of the nest’s ten hearts through all three tides. Each tide sends six urchins plus two more per wave number, and every fourth one is a heavy. Between tides there is a build phase of 30 seconds, then 25, that ends on its own or early with Space, so shells must be spent quickly.

Which SandBase models build the Tide Fortress shore?

Tide Fortress builds its shore with a SandBase text-to-3D model for the crab, the conch cannon, the urchin and the nest, a segmentation model that splits the crab into leg and claw joints, a music model and a sound-effect model. The sand, path, pads and projectiles are code. Calls appear on your SandBase account bill only after npm run assets quotes them within your --budget and you confirm with --confirm-real.

Can I sell or move cannons in Tide Fortress?

No, Tide Fortress has no selling or moving, so each shell spent is a commitment. Every cannon stays on its pad and can only be upgraded, at most to level 3. Invaders follow one fixed route, damage lands when a cannon fires instead of being simulated in flight, and there is no multiplayer or endless mode.

Is the tower defense playable offline?

Yes, every Tide Fortress example is one offline HTML file of about 3.4 MiB. Three.js, the shore code, the generated crab, cannons, urchins and nest, the music and the effects are all inside, and nothing is downloaded or generated while tides roll in. WebGL 2 is required. Frame rate on any given device was not tested for this page.

Does Tide Fortress work on touch screens?

Yes, Tide Fortress lets you tap a numbered pad directly and then tap Build · 30 shells or Upgrade · 25 shells in the panel, with each button at least 44 CSS pixels. A Start tide button skips the wait. The automatic check builds a cannon by tapping in a 390×844 viewport, and mouse clicks on pads work the same way on a desktop.

Why use Tide Fortress instead of asking an Agent for a tower defense game from scratch?

Tide Fortress gives your Agent a finished engine, so it only writes the theme: path, pads, prices, waves and story. Pathing, auto-firing turrets, the build and tide phases, phone controls and the autopilot that proves a round can be won already exist and are checked in a local Chrome each build. Every generated model is quoted before anything is billed.

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.