Game template · Unity 6000.6.9f1 · Node.js 20
Unity Tower Defense
Godot Tower Defense ported to Unity 6 and C#: the same rules, levels and art, with parity tests against the Godot game.
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 Unity 6000.6.9f1 (Unity Hub, or
unity install 6000.6.9f1) with a license activated in Unity Hub (the free Personal license works), and Node.js 20 or newer. Add Web Build Support in Unity Hub for web builds, and Android Build Support for Android. - Open the folder with your agent and say something like:
This is a Unity tower defense template from CodePlate. Read AGENTS.md, then let's turn it into my own game.
A complete tower defense game in Unity 6 (6000.6.9f1) and C#, built so your AI agent can turn it into your game.
What's inside
- "Lantern Keep": towers defend a mountain shrine across 6 levels with 1–3 star ratings.
- 4 towers, 3 levels each:
- quick arrows targeting ground and air
- a splash mortar with area damage
- a frost lantern that slows enemy movement
- a sun ray beam that ignores enemy armor
- upgrade, sell, and pick target modes (first, last, strong, close)
- 7 enemies: grunt, runner, armored beetle, flyer (bypasses the path), splitter, mini spawn, and boss.
- Waves: countdown between waves, with bonus gold for calling waves early.
- Feel: 1×/2×/3× speed toggles, range rings, impact bursts, floating gold text, and screen shake on leaks.
- Phone ready: touch targets of at least 48 dp, safe area and gesture bar clearance, two-tap spending, Back button handling on every screen, and pause on app switch.
- Content as data: maps are plain ASCII text in
Assets/Resources/Levels/; towers, enemies, and waves are JSON inAssets/Resources/Content/. - Look and sound: original pixel art, 16 sound effects, 2 looping music tracks, and a pixel font.
- Platforms: Web (WebGL with Brotli compression and IndexedDB saves), Android (debug APK and release AAB), Windows, macOS, and Linux.
For your agent
AGENTS.md, a brief written for AI agents, with 15 step-by-step recipes.- One command to verify everything:
npm run checkruns headless EditMode and PlayMode tests and project rules. - A pure, deterministic simulation:
Assets/Game/Core/has no UnityEngine references, allowing fast unit testing and CI execution with plain .NET. - Parity fixture:
parity/godot-tower-defense.jsonverifies that the C# simulation matches CodePlate's Godot Tower Defense tick for tick. - Balance bot:
npm run balanceruns an automated bot across levels to evaluate win rates and test difficulty margins. - Screenshots:
npm run shotscaptures any screen or battle moment from the command line. - One scene, built from code:
Assets/Scenes/Boot.unitycontains one GameObject withBoot; everything else is built in code without prefabs.
Requirements
- Unity 6000.6.9f1 with an activated license (the free Personal license works).
- Node.js 20 or newer.
- For Web builds: Web Build Support module in Unity Hub.
- For Android builds: Android Build Support module (including Android SDK & NDK Tools and OpenJDK) in Unity Hub.
Use it with your agent
- Unzip this folder where your project will live.
- Install Unity 6000.6.9f1 and Node.js 20+.
- 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.
The agent will interview you, record decisions in docs/project.md, and make changes step by step while running the check suite.
Play it yourself
Open the project in Unity Hub with 6000.6.9f1, open Assets/Scenes/Boot.unity, and press Play. Or build for the web: npm run build:web.
Tap a buildable grass tile to open the build menu. Tap a tower to upgrade or sell it. Esc pauses the game.
Commands
npm run check # run all automated checks
npm run rules # run project rules only
npm run shots # capture screenshots into shots/
npm run balance # bot win rates and balance report
npm run parity -- record # after intentional rule changes
npm run build:web # build WebGL player into Builds/Web/
npm run build:windows # build standalone Windows player
npm run build:macos # build standalone macOS player
npm run build:linux # build standalone Linux player
npm run build:android-apk # build debug Android APK
npm run build:android # build signed release Android App Bundle
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.
License
You can use, modify and ship games made from this template, including commercially. Games you share must credit "Built with CodePlate (codeplate.io)": the game's Credits screen already shows it, so keep that line in Assets/Resources/Content/credits.txt. 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: npm run check