xt4d
GameBlocks
Concise, self-explanatory building blocks for AI coding agents to prototype browser-based 3D games.
Documentation snapshot
README 快照
翻译暂时拿不到。
机器翻译的项目简介,仅供参考。原文在下方,也可以直接用浏览器自带的整页翻译 (Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」)。
下面正文是项目自己的英文 README。想读全文就用浏览器自带的整页翻译: Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」; 手机浏览器一般在菜单里。
本页保存的是公开项目资料快照,阅读过程不需要连接 GitHub。
图片:GameBlocks preview
📖 Introduction
What Is GameBlocks
GameBlocks helps coding agents build browser-based 3D game prototypes.
GameBlocks provides building-block code: concise and self-explanatory modules designed for agents to compose, adapt, and generalize from while implementing fragile 3D game systems such as coordinate frames, actor motion, and world structure.
Why GameBlocks
Natural language is a weak interface for precise 3D behavior. Prompts and agent reasoning must compress spatial transformations into language tokens. Small ambiguities can cause inverted directions, unstable motion, or gameplay state that no longer matches what appears on screen.
GameBlocks reduces that difficulty by turning fragile 3D and gameplay patterns into inspectable implementations with clear semantics. Instead of deriving 3D behavior from scratch, agents can generalize from GameBlocks to build spatially accurate 3D games.
For Stateful Generative Worlds
GameBlocks focuses on the stateful layer of a world rather than visual aesthetics. The vision is that world-rendering models will increasingly lift the burden of visual generation.
In that future, GameBlocks provides the structured interactive state that those models can render from, update, and keep consistent as agents and players act inside the world.
References: Moonlake, Game Cartridges, Project Eden.
🤖 Use in Agents
GameBlocks can be used as a local skill so a coding agent can discover it when a task involves browser-based 3D game development.
Codex
-
Clone the repository locally.
-
Run this command from the repository root (to copy
gameblocksto the skills folder):
mkdir -p ~/.codex/skills/gameblocks && cp -R gameblocks/. ~/.codex/skills/gameblocks/
-
Restart the Codex app (optional).
-
In the Codex chatbox, invoke the skill by typing
/gameblocksor$gameblocks, or let it load automatically when the task matches the skill description.
Claude Code
-
Clone the repository locally.
-
Run this command from the repository root (to copy
gameblocksto the skills folder):
mkdir -p ~/.claude/skills/gameblocks && cp -R gameblocks/. ~/.claude/skills/gameblocks/
-
Restart the Claude app (optional).
-
In the Claude Code chatbox, invoke the skill by typing
/gameblocks, or let it load automatically when the task matches the skill description.
🎬 Demo
Playable Games
| Preview | Title | Link |
|---|---|---|
| Archery Hunting | https://gb-archery-hunting.vercel.app/ | |
| Jet Dogfight | https://gb-jet-dogfight.vercel.app/ | |
| Desert Shooter | https://gb-desert-shooter.vercel.app/ | |
| Marble Puzzle | https://gb-marble-puzzle.vercel.app/ | |
| Pirate Seas | https://gb-pirate-seas.vercel.app/ | |
| Snake Clash | https://gb-snake-clash.vercel.app/ | |
| Space Shooter | https://gb-space-shooter.vercel.app/ | |
| Submarine Exploration | https://gb-submarine-exploration.vercel.app/ | |
| Endless Runner | https://gb-endless-runner.vercel.app/ | |
| Voxel Survival | https://gb-voxel-survival.vercel.app/ | |
| Robotic Arm | https://gb-robotic-arm.vercel.app/ | |
| Castle Defense | https://gb-castle-defense.vercel.app/ | |
| Tower Defense | https://gb-tower-defense.vercel.app/ | |
| Mech Arena | https://gb-mech-arena.vercel.app/ | |
| Drone Delivery | https://gb-drone-delivery.vercel.app/ | |
| Moon Racing | https://gb-moon-racing.vercel.app/ |
Gameplay Video
https://github.com/user-attachments/assets/98d22d80-06b6-49ac-8b33-2215ccb42222
📜 License
GameBlocks is released under the MIT License.
Official distribution
获取与安装
暂未发现可确认的官方软件包地址
当前 README 快照没有出现 npm、PyPI、Crates.io、pub.dev 等官方包页链接。本站不会根据仓库名称猜测下载地址。
本站不托管项目文件;需要安装时,请以项目维护者发布的官方文档为准。
Before installing
使用前核验
本站保存公开资料用于阅读,不代表安全审计或功能背书。安装前请核对许可证、依赖来源和发布签名,不要直接运行来源不明的二进制文件或高权限脚本。