Skip to content
Build a playable 3D browser world2-0Antigravity AppLearnBuild a playable 3D browser world Antigravity App LearnAntigravity AppAntigravity CLI
Available on:
Antigravity AppAntigravity CLI

Build Skycrest Archipelago, a playable low-poly 3D world, from an empty folder using /swarm and /browser. This build guide draws inspiration from Google’s Three-Live project and Three.js builders. One prompt splits terrain, glider physics, crystals, and tests across four parallel agents. You then verify the live WebGL scene visually with no local 3D software required.

Skycrest Archipelago walkthrough: run one /swarm prompt, watch four parallel agents build and test the 3D world, and inspect three sky presets in /browser. The video has sound. Parts of the video are sped up.


RequirementDetails
FormatSingle starter prompt + live visual check
Antigravity surfaceAntigravity App (v2.30.0+ for the built-in browser; v2.31.0+ for download prompts) or Antigravity CLI (agy)
Local toolsNode.js 22+ (for node --test, plus npx for CLI /browser) and Python 3 (to serve static files). Internet access is required for the Three.js CDN module.
Browser backendBuilt-in browser on personal App accounts (v2.30.0+). Local Google Chrome v144+ with chrome://inspect/#remote-debugging turned on for CLI and business or enterprise accounts.
MCP or pluginsNone. No Blender, Unity, or external texture packs required.

To build and verify Skycrest Archipelago from scratch, do the following:

  1. Create an empty workspace folder and open it in the Antigravity App (or run agy inside it):

    mkdir skycrest-archipelago && cd skycrest-archipelago
  2. Run the starter prompt. Make sure skycrest-archipelago is your active project first. Click Try in Antigravity on the card below, or click Copy prompt and paste it into your workspace composer or agy:

    /swarm Build a playable 3D explorer ("Skycrest Archipelago") using a Three.js CDN import map in index.html (no bundler or npm install) in four slices: @world (src/terrain_math.js, src/world.js: island, ocean, pines, rocks, 4 sky islands, clouds, Daylight/Golden Sunset/Starlight presets toggled with T), @physics (src/player.js: glider with WASD or arrow-key movement, Space jump/glide, Shift boost, island landings, terrain-clamped Follow and C-key Orbit camera), @gameplay (src/gameplay.js, index.html, src/main.js: 8 glowing crystals, Web Audio chimes, glass HUD, inline SVG favicon), and @verifier (tests/world_math.test.mjs Node tests for terrain, islands, and crystals, plus local server and /browser check of all 3 sky presets with zero console errors).
    WorkerOwned filesResponsibilities
    @worldsrc/terrain_math.js, src/world.jsProcedural archipelago, animated ocean, instanced pines and rocks, 4 floating sky islands, clouds, and three sky presets toggled with T.
    @physicssrc/player.jsGlider-explorer with WASD or arrow-key movement, Space jump and glide, Shift boost, island landings, and Follow plus C-key Orbit camera.
    @gameplaysrc/gameplay.js, index.html, src/main.jsThree.js CDN import map, 8 glowing sky crystals, Web Audio chimes, glass HUD, and inline SVG favicon.
    @verifiertests/world_math.test.mjsNode unit tests for elevation, islands, and crystals, plus local serving and /browser verification across all 3 sky presets.
  3. Follow the parallel agents on the Swarm board. Watch @world, @physics, @gameplay, and @verifier post progress, test runs, and screenshots on the shared board:

    Click Open the Swarm UI in the coordinator’s reply to open the Swarm side pane. Switch between Board, Members, and Graph to inspect live messages and active workers.

    The Antigravity App running the Skycrest Archipelago swarm, with the coordinator conversation on the left listing the world, physics, gameplay, verifier, and monitor workers above the Open the Swarm UI link, and the Swarm side pane on the right showing posts 1 through 9 on the Board tab as each worker hands off files to verifier and verifier confirms 12 passing tests and zero browser console errors

  4. Run the tests and launch the island locally:

    node --test tests/world_math.test.mjs
    python3 -m http.server 4173

    Open http://localhost:4173 in your browser and explore:

    • w a s d or ↑ ↓ ← → to move
    • Space to jump, and hold Space to glide
    • Shift to boost
    • t to switch between Daylight, Golden Sunset, and Starlight
    • c to toggle between Follow and Orbit cameras
  5. Run a visual check anytime you edit the scene. Copy and paste this prompt into your skycrest-archipelago conversation (or click Try in Antigravity with that project active):

    /browser Open http://localhost:4173, verify zero console errors, cycle through Daylight, Golden Sunset, and Starlight modes with the T key, test WASD and Space gliding, and show screenshots confirming the camera never clips into terrain.

  • Clear file boundaries prevent collisions. Terrain math, glider physics, crystal gameplay, and tests each own separate files. /swarm runs @world, @physics, @gameplay, and @verifier in parallel, while idle workers wait on the board without using tokens.
  • Unit tests and visual checks catch different bugs. node --test verifies finite heightmap math and crystal placement. /browser opens the live WebGL scene, checks console logs, inspects all three sky presets, and confirms clean camera framing.

Four reusable guardrails are baked into the starter prompt to avoid common 3D web pitfalls:

  • Three.js CDN import map (index.html): Avoids bundler setup and avoids npm install network prompts inside the terminal sandbox.
  • Pure math module (src/terrain_math.js): Lets @verifier run fast node --test assertions before launching a browser.
  • Inline SVG favicon (data:image/svg+xml): Prevents /favicon.ico 404 noise during automated /browser console checks.
  • Terrain-clamped camera rules in @physics: Keeps Follow and Orbit cameras above hillsides and trees, verified through /browser screenshots.

Once your archipelago runs, copy and paste any prompt below into your open skycrest-archipelago conversation. You can also click Try in Antigravity while that project is active:

/swarm Add a toggleable rainstorm mode with falling rain, dark storm waves, and glowing light trails behind the glider when holding Space to glide. Verify with /browser that frame rate stays smooth and console errors stay at zero.
/swarm Add 6 floating sky rings linking the four floating islands, a 60-second countdown timer, and a best-time scoreboard in localStorage. Have @verifier add Node unit tests for timer start and reset and verify the HUD stays readable at 390px mobile width with /browser.
Add a top-right HUD button that exports the island as a .glb file using Three.js GLTFExporter from three/addons/exporters/GLTFExporter.js, then verify in /browser that clicking it triggers a clean download with zero console errors.

In the Antigravity App built-in browser (v2.31.0+), blob: file downloads pause once for approval. Click Yes, allow this time when prompted.


  • Site approval prompt for localhost:4173: Under Default, Auto, or Request Review, /browser asks Allow executing actions on this URL?. Choose Yes, allow localhost:4173 in this conversation.
  • Port 4173 is already in use: @verifier may still be serving the folder. Open http://localhost:4173 directly, or start Python on another port such as python3 -m http.server 4174.
  • CLI or enterprise /browser cannot connect: Open local Google Chrome (v144+) and go to chrome://inspect/#remote-debugging. Turn on Allow remote debugging for this browser instance, then click Allow within 60 seconds when prompted.
  • Alt + S does not open the CLI board on macOS: Set your terminal to send Option as Alt (Meta). You can also run /swarm board, which works in every terminal.