Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Switchback Defense: Grove Bastion

Place turrets to bend enemy routes through a woodland battlefield. Actual A* paths, combat and upgrades drive the defense.

Örnek

Switchback Defense interactive battlefield
Yeni sekmede aç

Switchback Defense interactive battlefield

Örnek, bu sayfaya erişimi olmayan sandbox'lanmış bir çerçevede çalışır.

Çevrimiçi çalıştır

Bir SandBase sandbox'ında çalıştırın ve sonuçlarınızı Lab'de görüntüleyin.

Lab'de aç ↗

Neler elde edersiniz

Bring a battlefield, defenders and an optional palette. The Skill returns a downloadable Skill, interactive demos and example videos.

Nasıl çalışır

  1. 01

    Describe the battlefield in slots

    Switchback Defense starts from prompt slots for a battlefield and its defenders. node scripts/fill-prompt.mjs --slots assets/prompts/examples/grove-bastion.json --out prompt.md renders the sample, and node scripts/new-project.mjs --out my-bastion generates the project. Grove Bastion provides three editable layouts, four turret roles, six enemy archetypes and one hundred progressively stronger waves, in English and Simplified Chinese.

  2. 02

    Edit layouts and combat locally

    Your coding agent edits src/layouts.json for geometry and palette and tunes turret and unit parameters in src/sim.mjs, keeping the pathfinding and combat loop intact. It needs Node 22.4 or later and npm dependencies, with no keys, external models or assets, model calls or storage. Invalid layout data fails validation, and each layout needs an open entrance-to-exit route.

  3. 03

    Build and check live rerouting

    npm run build:single writes one offline HTML file, and npm run shoot -- --file dist-single/index.html runs bilingual interaction checks in Chrome. Confirm that placing a turret reroutes enemies, that a placement sealing the route is rejected before coins are charged, and that towers upgrade, sell and fire. Deliver the editable source, the HTML and the reports.

SSS

What is Switchback Defense?

Switchback Defense is a playable 3D tower defense game where your turret maze bends live enemy routes. Choose a turret and click or tap an empty tile, select towers to upgrade or sell, and send the next wave after clearing the last. You can toggle the path, pause, accelerate or restart.

Are Switchback Defense enemy routes prerecorded?

No. Switchback Defense recomputes routes with A* from the actual obstacles and moving unit destinations after each placement. Moving units finish their current segment without teleporting, and a placement cannot seal the spawn or a moving ground unit.

Does Switchback Defense need a model key?

No. Switchback Defense needs no keys, external models or assets, model calls or storage, and the built game runs offline. Building it only installs npm dependencies, so no SandBase charge applies.

Do flying units in Switchback Defense follow the maze?

No. Switchback Defense sends flying units straight to the gate, ignoring the maze, while they remain vulnerable to towers. Ground units are the ones that reroute around placements.

Can I add a battlefield to Switchback Defense?

Yes. Switchback Defense reads its battlefields from src/layouts.json; add a valid layout with an open route from entrance to exit and rebuild. Invalid layout data fails validation instead of producing a broken map.

What ends a Switchback Defense game?

Switchback Defense ends the game when you lose all lives, and you restart to play again. The UI reports a graphics startup failure if 3D cannot start, and missing Chrome stops the browser checks. Only optional synthesized tones are bundled, muted until a gesture enables them.

Lab Yetenek · 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.

Lab Yetenek · 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.

Lab Yetenek · 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.

Lab Yetenek · 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.

Lab Yetenek · 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.

Lab Yetenek · 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.