Skip to content

GodotGo

GodotGo's direction is to become the ultimate open home for all things Godot game-making: data, tools, resources and transparency, with one reusable framework, identical tooling for every game, and an agent-ready build-and-test loop for everyone (constitution §1).

CI License

Overview

A workspace for building Godot 4 games: one reusable framework, several complete sample games that exercise it, tooling that treats every game identically, and a Claude Code integration that can build, test and improve any of them.

The repository root is not a Godot project. Each project is a directory with its own project.godot, and every game symlinks addons/godotgo to the single shared framework.

Features

  • One shared framework addon (addons/godotgo) symlinked into every game
  • Five sample games that exercise it: orb-run, leap, swarm, shift and cascade
  • Project-aware tools to verify, test, smoke-run, export and scaffold any game the same way
  • A pinned Godot 4.7.2 shared by the host, the Docker image and CI
  • Generated placeholder sprites, sounds and meshes
  • Claude Code integration (settings, hooks, subagents, skills) to build and improve games

Quick start

tools/install_godot.sh       # fetch Godot 4.7.2 into .godot-bin (first run only)
tools/install_godot_ai.sh    # optional: the live-editor MCP addon
tools/verify.sh              # check, test and smoke-boot every project
tools/run.sh leap            # play a game
tools/new_game.sh dodge --title "Dodge"   # scaffold a new one, verified before it returns

The workspace pins its engine version in tools/lib.sh, and the installer puts that exact release in .godot-bin/ without touching anything already on the machine. An engine already on PATH or in $GODOT_BIN is used instead if you prefer.

Nothing but Docker is required if you would rather not install Godot at all:

tools/docker.sh build && tools/docker.sh verify

Optional lint and format: python3 -m venv .venv && .venv/bin/pip install "gdtoolkit==4.*".

Commit hooks: python3 -m venv .venv && .venv/bin/pip install pre-commit && .venv/bin/pre-commit install, once per clone. The virtualenv is there because Homebrew's Python and other PEP 668 installs refuse a plain pip install; pipx install pre-commit && pre-commit install works as well. Before each commit they check whitespace, YAML, every shell script (shellcheck), one paragraph per line in Markdown, and that the generated API reference and docs index are current; pre-commit run --all-files runs them on everything.

The sample games

Each one exists to exercise a different part of the framework. docs/verification.md maps every feature to the test that proves it.

Game Type What it proves
orb-run 3D first-person Character controller with coyote time, Area3D triggers, particles, a real Material Maker PBR pipeline
leap 2D platformer ASCII level maps parsed into merged collision runs, a life budget, a moving platform
swarm 2D arena shooter Pooled bullets with a hard ceiling, state-machine enemies, waves composed from a seed so a run replays exactly
shift Grid puzzle A pure-logic core with undo, deadlock detection and no physics node anywhere, plus saved per-level best scores
cascade Collapse puzzle Tile sprites from an uncapped pool, a state machine that sequences each pop and locks input while it plays, and levels that are either ASCII or a seed

Every game is the same shape: rules live in a Session subclass registered as the autoload Game, scenes wire themselves to its signals, and the whole round is testable without a display.

The framework

framework/addons/godotgo/ is a normal Godot addon you can copy into any project.

  • Session owns the round: state machine, score, objective counter, countdown, and a signal for each.
  • SaveSystem stores versioned JSON slots and refuses files from a newer schema.
  • ObjectPool, StateMachine, Rng, TextGrid are the pieces games kept rewriting.
  • DebugOverlay is an F3 diagnostics panel that builds its own UI.
  • GodotGoTest and a SceneTree test runner give headless tests with physics frames, signal recording and scene helpers, with no third-party dependency.

docs/framework.md explains each piece, docs/reference/framework-api.md is the API reference generated from the scripts' doc comments, and docs/authoring-games.md walks through building a game on it.

Placeholder assets are generated

No sprite, sound or mesh in this repository was drawn or recorded. tools/gen_assets.py writes all of them from code, byte-identically on every machine, and CI fails if the committed files differ from a fresh run. Restyling the art means editing Python, not opening an image editor.

python3 tools/gen_assets.py          # every project
python3 tools/gen_assets.py leap     # one

3D materials come from Material Maker through a headless Docker export.

AI-assisted development

docs/ai-development.md covers the whole setup. The short version:

tools/claude.sh fix leap                     # make verification green again
tools/claude.sh build leap "add a double jump"
tools/claude.sh improve framework
tools/claude.sh new dodge "endless obstacle dodger"

Each command runs Claude Code non-interactively, restricted to this workspace's own scripts, and then runs tools/verify.sh, feeding failures back until the gate passes. Authentication is a Claude Code OAuth token from claude setup-token. The same token drives three GitHub workflows: @claude mentions, automatic pull-request review, and a weekly autonomous improvement run that opens a pull request.

For work that needs a running editor rather than a headless run, tools/install_godot_ai.sh adds Godot AI, which connects an MCP client to a live Godot editor. This workspace publishes five tools of its own into it, so the agent that builds a scene can also run the gate on it:

tools/install_godot_ai.sh          # pinned release, checksum-verified, shared by every project
tools/godot_ai.sh doctor           # check the whole chain
tools/godot_ai.sh edit leap        # open the editor with the bridge live

It is optional and gitignored: nothing about a checkout, a test run or CI changes if you never install it.

Documentation

docs/README.md indexes every document in the repository, one line each.

Project structure

framework/     the shared addon (addons/godotgo) plus its own tests
vendor/        third-party addons fetched by an installer (gitignored)
games/         orb-run, leap, swarm, shift, cascade
templates/     what tools/new_game.sh copies to start a new game
tools/         project-aware scripts: verify, check, test, run, export, scaffold, Claude, Docker
tests/         Godot-free tests of the tooling (stdlib unittest), run by CI
docker/        the container CI and contributors use
docs/          framework guide, generated API reference, game authoring, AI development, verification matrix
.claude/       Claude Code settings, edit hook, subagents, skills

AGENTS.md § Layout describes each directory.

Development

tools/verify.sh [project]            # the gate: version pins, check, test, smoke
tools/check.sh [project]             # load every script, scene and resource; gdlint + gdformat --check
tools/test.sh [project] [filter]     # headless unit tests
tools/export.sh <project> [preset]   # release build (or tools/docker.sh export <project>)
python3 tools/gen_framework_api.py   # regenerate docs/reference/framework-api.md
python3 -m unittest discover -s tests -v   # test the asset and docs generators; no Godot needed

AGENTS.md is the canonical guide to working here: every command, the engine pin, the scene and UID rules, and the conventions CI enforces.

Contributing

Contributions are welcome via pull request. Use Conventional Commits and keep the CI checks green. The fleet-wide workflow is described in the hub's CONTRIBUTING.md. AI agents and contributors should start with AGENTS.md.

Changelog

Notable changes are recorded in CHANGELOG.md; the full record is in the commit history.

License

MIT. See LICENSE.


Part of the bamr87 portfolio — browse every project on Amr's GitHub profile.