OpenGame: AI Agents Remix 25 Game Templates for WeChat & TikTok Deployment
OpenGame is an open-source framework that lets AI agents remix 25 playable game templates via 12 MCP tools, automates QA through four deterministic validation gates, and exports to WeChat Mini Games, Douyin, and TikTok, though copyright risks and BYOK costs remain concerns.
Reading font

What Is OpenGame
OpenGame is an Apache-2.0 licensed TypeScript project from the OpenDesign team that positions itself as a Unity/Unreal-like environment for AI agents. Instead of generating games from scratch, it provides 25 verified, playable templates across 3D, voxel, anime, pixel, and 9:16 vertical categories — ranging from racing to roguelike to vertical mini-games — so agents only need to reskin themes, art, and audio.
Two key constraints: it follows BYOA (bring your own agent) and BYOK (bring your own API keys) — you must supply models for art, music, voice, and video — and it targets playable prototypes, mini-games, and playable ads, not AAA production.
Three-Piece Game Studio Architecture
The system comprises three layers:
Playable templates — 25 pre-tuned game skeletons with deterministic logic.js, clean index.html, built-in Three.js, and design docs.
Multimodal gateway — connects to external models for assets (GPT Image, Seedream, FLUX, Suno, ElevenLabs, etc.).
Automated QA & publishing pipeline — four deterministic validation gates plus one-click export to web, Game Studio marketplace, 9:16 playable ads with App Store/Google Play end cards, and planned scripts for WeChat Mini Games, Douyin, TikTok, Xiaohongshu, and itch.io.
For agents, OpenGame exposes 12 MCP tools ( openmotion_game_*) covering game creation, file writing, validation, simulation, playtesting, and trailer generation, backed by 18 game-engineering manuals on 3C controls, game feel, and playable-ad design. It integrates 22 local coding agents including DeepSeek, Claude Code, Codex, Gemini, and Cursor.
Highlight 1: Game-as-Code — Reskin Without Rewriting
Each template separates verified gameplay from theme/art/content. A template ships with readable source: index.html, deterministic logic.js, Three.js integration, and a design document. You one-click Remix — swap characters, palettes, textures, music — while physics and win/lose rules stay intact.
Example: the built-in Tidebreaker (3D speedboat racing through storm islands, 8 checkpoints) can be remixed into a cyberpunk night-city cat parkour that keeps the double-jump and scoring loop but replaces art and character. Cheaper models handle this reskinning well, enabling matrix-account operators to batch-produce mini-games.
Limitation: gameplay is bounded by the template skeleton; truly novel mechanics still require from-scratch development.
Highlight 2: QA as Four Deterministic Gates
Most AI game tools stop at code generation. OpenGame adds four automated, deterministic checks — same input always yields same result — so simulation and headless replay can reliably reproduce issues.
50-frame logic validation — each frame must complete within 5 ms.
Three-layer deterministic balance simulation — headless, no-browser verification that an expert can win, a novice struggles, and an idle player always loses.
Headless Chromium real-device playtest — 1–4 clients at 390×844 phone layout to catch UI breaks.
Cover & trailer auto-generation — records three 5-second headless playthrough clips, edits them into a 19-second title + highlights + "Play Now" MP4.
The trailer automation is practical: it saves manual screen-recording and editing. However, these gates only verify runnability and balance — not subjective fun, game feel, or level design.
Highlight 3: Direct Publishing
Publishing is integrated: local one-click upload to your Game Studio marketplace, web share-link generation, and 9:16 vertical playable-ad export with store end cards. Playable ads convert higher than static creatives because users play a round inside the ad.
Platform packaging (WeChat Mini Games, Douyin, TikTok, etc.) is on the roadmap; currently it provides clean export bundles that you manually wrap. Guided L1–L4 one-click publish is not yet ready.
Known Issues & Risks
Copyright red line : template library includes names like Plants vs. Zombies, Cut the Rope, Flappy Bird, Tetris, Zuma, Gold Miner. The repo explicitly keeps verified gameplay and only swaps art, with no third-party licenses in the root. Personal play is fine; commercial release carries infringement risk you must clear yourself.
Capability boundary : excels at fast reskinning of proven loops, not original AAA design. Game feel and level design remain human tasks.
Cost model : BYOK means you pay for every asset API (GPT Image, Seedream, FLUX, Suno, ElevenLabs, etc.). Monthly bills can be high, but you avoid vendor lock-in and can swap models in config.
Audience mismatch : serious commercial devs will find it insufficient; casual "one-prompt game" users face a steep local toolchain setup. Agent adaptation quality varies — DeepSeek, Claude Code, Codex are prioritized; others fall back to generic MCP and may need manual tuning.
Installation & Configuration
Prerequisites: Git, Git LFS, npm, Node.js ≥ 22.18. Missing any will block setup.
Four steps (first two skip LFS download to save bandwidth; assets are pulled on-demand when you select a template):
git -c filter.lfs.smudge= -c filter.lfs.required=false clone --depth 1 --branch main https://github.com/nexu-io/opengame.git
cd opengame && git lfs install --local --skip-smudge
npm ci && npm run build:studio
npm startAgent integration via MCP: attach the repo's mcp.ts to your agent, set env var MOTION_DATA_DIR to an external directory for game data and keys. This launches a local stdio server exposing the 12 openmotion_game_* tools. Claude Code, Codex, and WorkBuddy have dedicated install scripts/configs.
Verification: after npm start, open Game Studio in browser; the 25-template catalog wall should appear. Click Tidebreaker — if it runs offline, installation succeeded.
Common pitfall: missing or uninitialized Git LFS leads to broken images (covers, textures). Fix with git lfs install --local then git lfs pull.
Time estimate: environment ready → ~10 minutes; full MCP + model keys configuration → an afternoon.
Author's Take
Benchmark for AI game tools: can they push from "generatable" to "playable and shippable"? Earlier tools like dsh-games left verification (run, test, cut trailer) to the user. OpenGame automates all three, making it more production-grade.
Compared to raw GPT HTML game generation, it adds engineering guardrails; compared to Unity, it's faster, lighter, and free/open-source.
Recommendation split:
Already building mini-games, playable ads, or rapid prototypes → install, start with Remix, ship several playable demos in a day.
Aiming for original AAA or wanting zero-setup "one prompt = game" → skip; former needs more depth, latter requires toolchain investment first.
GitHub repository: https://github.com/nexu-io/opengame
For questions about attribution, corrections or content rights, please contactand we will review it promptly.