Game template · Godot 4.7.2
Godot Tower Defense
A complete pixel-art tower defense game in Godot 4: 4 upgradeable towers, 7 enemies, 6 levels with stars. ASCII maps, JSON content.
Free On itch.io, no account needed · Free License: credit "Built with CodePlate" in what you ship
Serving suggestion
- Download template.zip from itch.io and unzip it where your project will live.
- Install Godot 4.7.
- Open the folder with your agent and say something like:
This is a tower defense template from CodePlate. Read AGENTS.md, then let's turn it into my own game.
Want more? Godot Tower Defense Extended is this game grown into a bigger one: 3 worlds and 18 levels, 7 towers with level-4 branches, shielded, healing and stealthy enemies, phased bosses, spells, Casual/Normal/Heroic, level challenges, an upgrade tree, endless mode, mid-level save and optional rewarded ads. It's a paid Pro template on codeplate.itch.io. This free template stays complete on its own and keeps getting fixes.
A complete tower defense game for Godot 4.7, built so your AI agent can turn it into your game.
What's inside
- "Lantern Keep": paper-lantern towers guard a mountain shrine from creeping shadows, across 6 levels with stars.
- 4 towers, 3 levels each: quick arrows, a splash mortar, a frost lantern that slows, and a long sun ray that ignores armor. Upgrade, sell, and pick a target mode (first, last, strongest, closest).
- 7 enemies: grunts, fast runners, armored beetles, flyers that skip the path, splitters, and a boss.
- Waves: a countdown between waves, with bonus gold for calling the next one early.
- Feel: 1×/2×/3× speed (any speeds, fractions included), range rings, hit and splash effects, gold popups, shake on leaks.
- Controls: mouse and keyboard shortcuts, and a touch layout for phones and tablets: thumb-sized buttons, nothing under the camera cutout or the gesture bar, a map scaled to the screen, two taps to spend gold, and Android's Back button handled on every screen.
- Progress: saved stars, and each level unlocks the next.
- Settings and credits: music and effects volume, fullscreen, reset progress, and a credits page.
- Content as data: maps are plain ASCII text; towers, enemies and waves are JSON. It's the easiest content for an agent to edit.
- Free to ship: original pixel art, sound effects and music.
For your agent
AGENTS.md: the brief, with 13 step-by-step recipes (including more spawns and paths per map) and a full content reference.- A deterministic battle core with no nodes, and over 70 headless checks covering every rule, every screen at four phone and tablet shapes, and the level curve.
- A balance bot. It plays every level, and the checks fail if a level can't be won with lives to spare, or can be won without building anything.
- Map validation that names the row and column of any mistake.
- A screenshot tool that fast-forwards into a battle, so the agent can see what it changed.
Use it with your agent
- Unzip this folder where your project will live.
- Install Godot 4.7.
- Open the folder with your agent and say something like:
> This is a tower defense template. Read AGENTS.md, then let's make it mine: a candy castle defended from ants, with a gumdrop cannon and a licorice whip tower.
Run it yourself
godot --path .
How this template was made
This template was written largely by AI coding agents (Claude, by Anthropic). IASoft reviewed and tested the work. The template's checks run on every change. To test it, a fresh agent was given a made-up project and a set of change requests to carry out with the template.
License
You can use, modify and ship games made from this template, including commercially. Games you share must credit "Built with CodePlate (codeplate.io)" (in the credits, or the store page or docs). You can't resell the template itself. See LICENSE.md. The placeholder assets are listed in assets.json and CREDITS.md.
Made by CodePlate.
For agents
itch.io page: https://codeplate.itch.io/godot-tower-defense-template
Free template, downloaded from itch.io: you can't fetch it yourself. Ask the user to download template.zip from that page (free, no account needed) and give you the zip or the unzipped folder.
Verify with: godot --headless --path . --import && godot --headless --path . --script res://addons/codeplate/checks/run.gd