Antigravity 2D Game Studio is a 2D game development plugin for Google Antigravity, Go, and Ebitengine. Version 0.4.0 bundles 9 game-dev and media skills, a 10-tool Go MCP server (game-studio) with zero Python or uv runtime dependencies, and the Game Dev Studio Playtest UI (60 FPS WASM runner, 10s DVR rewind, visual bug annotation, and GIF capture).
agy-game-studio ships with prebuilt UI assets (dist/) and uses Antigravity's bundled Node.js runtime and sidecar_sdk. Installing the plugin as a user requires no npm install, no frontend build step, and no Python or uv installation: you only need a Go toolchain (1.26+ recommended) to compile Ebitengine games to WebAssembly (GOOS=js GOARCH=wasm) and build the bundled Go MCP server (mcp/) on demand.
Procedural audio (.music, .sfx), procedural or .aseprite sprites, sprite normalization, and WASM playtesting work completely offline. To enable generative AI assets via image_generate (Nano Banana) and music_generate (Lyria) in the game-studio MCP tools, configure one of two Google Gen AI authentication modes:
-
Option 1: Vertex AI / Gemini Enterprise (Application Default Credentials):
gcloud auth application-default login export GOOGLE_CLOUD_PROJECT="your-gcp-project-id" export GOOGLE_CLOUD_LOCATION="global" export GOOGLE_GENAI_USE_ENTERPRISE="true" # or GOOGLE_GENAI_USE_VERTEXAI="true"
-
Option 2: Gemini Developer API (API key):
export GEMINI_API_KEY="your-api-key" # or GOOGLE_API_KEY
Choose the installation method for your Antigravity surface:
Install directly from GitHub in your shell:
agy plugin install https://github.com/danicat/agy-game-studioOr inside an interactive agy TUI session using /plugin:
/plugin install https://github.com/danicat/agy-game-studio
Place (or symlink) the plugin directory in one of Antigravity's plugin discovery roots:
-
Global (all workspaces):
- macOS / Linux:
~/.gemini/config/plugins/agy-game-studio - Windows:
%USERPROFILE%\.gemini\config\plugins\agy-game-studio
git clone https://github.com/danicat/agy-game-studio.git ~/.gemini/config/plugins/agy-game-studio - macOS / Linux:
-
Symlinked local checkout (recommended for local development or testing): Clone anywhere and link your working tree into the global plugins folder so Antigravity loads edits directly from your checkout (see the Developer & Contributor Guide below):
ln -s /path/to/agy-game-studio ~/.gemini/config/plugins/agy-game-studio -
Workspace (project-scoped): Place the plugin at
.agents/plugins/agy-game-studioin your repository root, or declare its parent directory in.agents/plugins.json(workspace) or~/.gemini/config/plugins.json(global):{ "entries": [ { "path": "/path/to/plugins" } ] }
- If you created or symlinked a new plugin directory manually on disk, restart Antigravity so it discovers the directory on startup.
- In Antigravity 2.0 or Antigravity IDE, open Customizations in the left sidebar, select the Installed tab, and verify Game Dev Studio (
agy-game-studio) is enabled. (Or run/pluginin chat /agy plugin enable agy-game-studioin the CLI.) - Once enabled, Antigravity automatically starts and supervises both the
agy-game-studio/studiosidecar process and thegame-studiostdio MCP server (mcp_config.json).
Use /game-dev-studio inside any Antigravity conversation to open the Game Dev Studio side panel (sidecar://agy-game-studio/studio/playtest), or click โฎ -> Extensions -> Game Dev Studio in the top-right corner of a conversation:
- Pick & Run a Go Project: Click Open Project to select a Go module and runnable package, then click ๐ Run to compile (
GOOS=js GOARCH=wasm) and playtest your Ebitengine game at 60 FPS.
Run ./scripts/check_env.sh (or ./scripts/check_env.sh --help) at any time to verify go, wasm_exec.js, node, optional godoctor/kungfu, and optional gemini auth configuration.
Open Game Dev Studio in the right-hand side pane via /game-dev-studio, [Game Dev Studio](sidecar://agy-game-studio/studio/playtest), or โฎ -> Extensions -> Game Dev Studio.
- One-click WASM compilation: Click Open Project to select your Go game folder and main package (for example
/path/to/gameor/path/to/repo/cmd/game) and click ๐ Run. The sidecar resolvesgo.mod, builds withGOOS=js GOARCH=wasm, and streams compiler or runtime panic tracebacks straight to chat. - 60 FPS Zero-Copy DVR Ring Buffer: Continuously records the last 10 seconds (250 frames @ 25 FPS) onto GPU-backed 2D canvases without dropping frame rate.
- Pause, Scrub & Annotate (
F8or`): Pause gameplay, scrub frame-by-frame through the 10s DVR timeline, draw boxes/arrows/callouts over visual bugs, and send either:- ๐ธ Frame: Smart-cropped PNG screenshot (true-to-screen resolution when unannotated, or automatically expanded to include margin notes) plus WASM console logs.
- ๐๏ธ 10s GIF: Pure 10-second animated GIF89a replay locked strictly to the game's screen resolution plus WASM console logs.
All 9 game-dev and media skills ship inside skills/ alongside their detailed references/ guides. In v0.4.0, duplicate per-skill scripts/ directories inside skills/ were removed in favor of the single bundled Go MCP server (mcp/), eliminating any Python or uv runtime dependency.
| Skill | Domain | What it does |
|---|---|---|
vibe-game-developer |
Workflow Router | Orchestrates 2D Go and Ebitengine game builds across all companion skills, the 10 Go MCP tools, and the Game Dev Studio Playtest panel. |
game-design |
Game Design | Runs a focused one-decision-at-a-time interview across any 2D genre and writes a structured GDD.md. |
ebitengineer |
Go & Ebitengine | Guides modular internal/ architecture, scene FSM, virtual resolution, zero-allocation Draw(), //go:embed asset loading, Kage shaders, and WASM builds. |
sprite-design |
2D Sprites & Animation | Covers procedural .sprite DSL, binary .aseprite v1.3 containers, sheet normalization, palette extraction, and zero-allocation AnimationController playback. |
procedural-sfx |
Procedural SFX | Authors .sfx DSL sound cues compiled in memory to 4-byte aligned 44.1 kHz stereo PCM with 18 presets, PolyBLEP, SVF sweeps, and LFSR noise. |
procedural-music |
Procedural Music | Authors polyphonic .music DSL soundtracks compiled via pure-Go SEGA YM2612 + SN76489 or macOS CoreAudio (gs_instruments.dls). |
nano-banana |
AI Sprites & Art | Drives image_generate for character turnaround sheets, 4x4 chroma-key sprite grids, 4:1 parallax backgrounds, and multi-image edits. |
lyria |
AI Music & Songs | Drives music_generate (lyria-3.5, lyria-3-clip-preview, lyria-3-pro-preview) for 44.1 kHz stereo tracks, songs with lyrics, and image-to-music audio. |
game-dev-studio |
Studio Launcher | Surfaces [Game Dev Studio](sidecar://agy-game-studio/studio/playtest) pills in chat to launch the Playtest panel in the auxiliary pane. |
You can also pair external tools such as godoctor for Go verification and linting alongside this plugin. Those optional tools live outside skills/.
Whether you author procedural DSLs or generate art and music with Nano Banana and Lyria, games bake all assets into self-contained binaries. Go's standard //go:embed (embed.FS) handles this directly:
- Create or generate assets: Author
.sprite,.music, or.sfxfiles, generate character sheets and backgrounds withimage_generate, and create soundtracks withmusic_generate. - Normalize and bake game-ready files:
- Sprites: Run
sprite_normalizeorsprite_compileto bake packed.pngsheets +.jsonmanifests or.asepritebinaries intointernal/assets/. - Audio: Run
sfx_synthesize,music_synthesize, ormusic_generateto bake.wavor.mp3tracks intointernal/assets/.
- Sprites: Run
- Embed at compile time (
//go:embed): Declare//go:embedpatterns ininternal/assets/assets.goso every sprite sheet, audio asset, font, and Kage shader compiles directly into the Go executable and WebAssembly bundle (game.wasm) with zero external file I/O or runtime API calls. - Validate fail-fast at
Bootand run at 60 FPS: Decode and validate all embedded bytes once duringBoot(returning explicit errors on malformed assets, enforcing 4-byte stereo PCM alignmentlen(pcm) &^ 3on44.1 kHzaudio streams, and pre-slicing sprite frames once before enteringUpdate()orDraw()), then launch in Game Dev Studio (GOOS=js GOARCH=wasm).
mcp_config.json exposes the unified headless Go engine server (mcp/) over stdio using scripts/run-mcp.mjs, providing 10 tools for Antigravity agents with zero Python or uv dependency:
| Tool | Purpose |
|---|---|
sound_presets |
Lists the 18 built-in SFX archetype presets, music wave types, YM2612 FM patches, and classical tempo markings. |
music_synthesize |
Synthesizes and analyzes a .music DSL score to 16-bit 44.1 kHz stereo WAV and optional per-track binary stems. |
music_validate |
Validates a .music DSL score against production BGM music theory, consonance, drift, channel count, and duration rules. |
sfx_synthesize |
Synthesizes and validates a .sfx DSL sound effect cue to 16-bit 44.1 kHz stereo WAV. |
sprite_inspect |
Inspects a .sprite container, binary .aseprite/.ase file, or .png sprite sheet and optionally exports a rendered PNG. |
sprite_compile |
Compiles a .sprite DSL spec and optionally writes packed .png sheets, .aseprite binaries, .json manifests, previews, and .gif previews. |
sprite_normalize |
Strips chroma-key backgrounds, centers and grounds frames, and exports normalized .png, .json, .sprite, .aseprite, and .gif outputs. |
sprite_extract_palette |
Extracts 4-step material shading ramps from a reference character sheet image as .sprite DSL ramp directives. |
image_generate |
Generates or edits images via Nano Banana models (nano-banana-2.1, nano-banana-2, nano-banana-2-lite, nano-banana-pro) across interactions and models API modes with optional Search grounding and up to 14 reference images. |
music_generate |
Generates 44.1 kHz stereo music and songs via Lyria models (lyria-3.5, lyria-3-clip-preview, lyria-3-pro-preview) across interactions and models API modes, writing .mp3 or .wav audio and optional lyrics files. |
Only contributors modifying Game Dev Studio's TypeScript frontend (src/), sidecar server (server/), bundled skills (skills/), or Go MCP server (mcp/) need to install dev dependencies or rebuild dist/.
Clone the repository and symlink it into ~/.gemini/config/plugins/agy-game-studio so Antigravity loads your live working tree directly without re-copying files after each edit:
git clone [email protected]:danicat/agy-game-studio.git
cd agy-game-studio
ln -s "$(pwd)" ~/.gemini/config/plugins/agy-game-studio
ls -la ~/.gemini/config/plugins/agy-game-studio
./scripts/check_env.shIf ~/.gemini/config/plugins/agy-game-studio already exists as a cloned directory, remove or back it up before creating the symlink, and restart Antigravity once so it picks up the symlinked path.
npm install
npm run build
npm run typecheck
npm test
(cd mcp && go test ./...)npm run build typechecks the TypeScript source (src/) and runs Vite to produce the self-contained frontend bundle (dist/index.html, dist/app.js, dist/styles.css) so the committed dist/ folder runs with zero external node_modules.
Antigravity writes sidecar stdout and stderr to:
~/.gemini/antigravity/sidecar_data/agy-game-studio/studio/logs/sidecar.log
- Frontend changes (
src/): Runnpm run build, then refresh or close and reopen the Game Dev Studio panel. The sidecar server readsdist/index.html,dist/app.js, anddist/styles.cssfresh from disk on every request. - Backend or MCP changes (
server/,sidecars/studio/, ormcp/): Runnpm testand(cd mcp && go test ./...), then disable and re-enable Game Dev Studio (agy-game-studio) in Customizations -> Installed (or via/plugin). Re-enabling restarts the background sidecar and triggersscripts/run-mcp.mjsto recompilemcp/on demand if Go sources changed. - Skill changes (
skills/): Edits toSKILL.mdandreferences/under the symlinked repository take effect on subsequent agent turns (or after toggling the plugin).
DISCLAIMER: I AM NOT A GAME DEVELOPER.
I am Daniela Petruzalek, a Developer Relations Engineer at Google. I might not be a game developer, but I am a lifetime gamer and game collector. I enjoy using projects like this to teach software engineering, agentic coding, and creative ways to build with AI.
This is not an officially supported Google product.



