Demo · Released

Compile & Defend Demo

A tower defense game where you don't click to shoot — you write code your towers run every tick, in Python, JavaScript, C++, C#, Rust, Zig or Lua. Prioritize threats with if, sweep swarms with for, and route air, armor and camo to the right tower. Better algorithms beat more towers.

Release date
July 10, 2026
Platforms
Windows, Linux
Developer
Codx.io
Publisher
Codx.io
Compile & Defend Demo artwork
Media

Screenshots & videos

Official media supplied by the listed storefronts and publishers.

Screenshots

Videos

Store description

About Compile & Defend Demo

You don't place towers. You program them. Compile & Defend is a tower defense game with no click-to-shoot. Every tower on the field runs your code, once per tick. Write a smarter script and your defense gets smarter — write a sloppy one and the swarm walks right through. It's the tower defense game for people who'd rather refactor than micromanage. Write it in your languageThere's no proprietary scripting dialect to learn. You write in a clean subset of a real language you already know — pick from Python, JavaScript, C++, C#, Rust, Zig, or Lua.

They all compile to the same engine; the language only changes how your code is spelled. Switch anytime. How it playsYour program is bound to each tower every tick — me is the tower, me.enemies_in_range is what it can see, me.shoot(target) pulls the trigger. From there it's all you! The closest enemy isn't always the most dangerous one — so the naive shoot the first thing you see script will always get you started, and never win.

Better algorithms beat more towers. FeaturesCode-driven combat — a real (but safe) interpreter runs your script. Clear, line-numbered errors, because debugging is half the genre.A teaching campaign — a seven-stage tutorial walks you from your first shoot to full for-loop swarm control, introducing each threat one step before the tool that beats it.13 campaign maps across three tiers.…

Read the full description on Steam ↗
Official sources

Download Compile & Defend Demo

Continue to an official storefront to download or purchase this title.

Compile & Defend Demo artwork
Compile & Defend DemoSteam · Demo · Available
From the community

Compile & Defend Demo reviews & player comments

Store ratings and available player reviews. Review snapshots show their last refresh date.

★ 10.0/10Steam · 2 ratings
SteamLast checked November 23, 2026

Most helpful2

Recommended
So far I have only completed the tutorial and worked on getting three stars for each part but the game definitely has promise and I…
Recommended
Good little programming tower defense game, the tutorial is helpful for those new to programming and even has the helpful documentation snippits when hovering. Definitely…

Most recent2

Recommended
Good little programming tower defense game, the tutorial is helpful for those new to programming and even has the helpful documentation snippits when hovering. Definitely…
Recommended
So far I have only completed the tutorial and worked on getting three stars for each part but the game definitely has promise and I…

Short excerpts linked to their source. The score above uses aggregate storefront ratings—not these few comments.