跳到正文

xt4d

GameBlocks

Concise, self-explanatory building blocks for AI coding agents to prototype browser-based 3D games.

README 已保存到本站,可直接阅读

Documentation snapshot

README 快照

这篇是英文原文

下面正文是项目自己的英文 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

  1. Clone the repository locally.

  2. Run this command from the repository root (to copy gameblocks to the skills folder):

mkdir -p ~/.codex/skills/gameblocks && cp -R gameblocks/. ~/.codex/skills/gameblocks/
  1. Restart the Codex app (optional).

  2. In the Codex chatbox, invoke the skill by typing /gameblocks or $gameblocks, or let it load automatically when the task matches the skill description.

Claude Code

  1. Clone the repository locally.

  2. Run this command from the repository root (to copy gameblocks to the skills folder):

mkdir -p ~/.claude/skills/gameblocks && cp -R gameblocks/. ~/.claude/skills/gameblocks/
  1. Restart the Claude app (optional).

  2. 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

PreviewTitleLink
Archery Huntinghttps://gb-archery-hunting.vercel.app/
Jet Dogfighthttps://gb-jet-dogfight.vercel.app/
Desert Shooterhttps://gb-desert-shooter.vercel.app/
Marble Puzzlehttps://gb-marble-puzzle.vercel.app/
Pirate Seashttps://gb-pirate-seas.vercel.app/
Snake Clashhttps://gb-snake-clash.vercel.app/
Space Shooterhttps://gb-space-shooter.vercel.app/
Submarine Explorationhttps://gb-submarine-exploration.vercel.app/
Endless Runnerhttps://gb-endless-runner.vercel.app/
Voxel Survivalhttps://gb-voxel-survival.vercel.app/
Robotic Armhttps://gb-robotic-arm.vercel.app/
Castle Defensehttps://gb-castle-defense.vercel.app/
Tower Defensehttps://gb-tower-defense.vercel.app/
Mech Arenahttps://gb-mech-arena.vercel.app/
Drone Deliveryhttps://gb-drone-delivery.vercel.app/
Moon Racinghttps://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 等官方包页链接。本站不会根据仓库名称猜测下载地址。

本站不托管项目文件;需要安装时,请以项目维护者发布的官方文档为准。

使用前核验

本站保存公开资料用于阅读,不代表安全审计或功能背书。安装前请核对许可证、依赖来源和发布签名,不要直接运行来源不明的二进制文件或高权限脚本。