Compile & Defend

Compile & Defend

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.

  • Indie
  • Simulation
  • Strategy
  • Single-player

from₽221

Trailer and screenshots

1 video · 7 screenshots

Trailer - wishlist

Trailer - wishlist

What to buy

  • Compile & Defend

    Compile & Defend

    from₽221

    Gift: the price depends on the account country

About the game

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.

There'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.

Your 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!

Features

13 features

  • Single-player
  • Steam Achievements
  • Steam Workshop
  • Steam Leaderboards
  • Family Sharing
  • Adjustable Text Size
  • Camera Comfort
  • Color Alternatives
  • #category_contrast_controls
  • Custom Volume Controls
  • #category_playable_at_your_own_pace
  • Playable without Timed Input
  • Includes level editor
Developer
Codx.io
Publisher
Codx.io
Release date
July 23, 2026
Platform
Windows, Linux + SteamOS
Genres
Indie, Simulation, Strategy

ComponentMinimumRecommended
OSWindows 10 (64-bit)Windows 11 (64-bit)
ProcessorIntel Core i3 or equivalent (any x86-64 dual-core)Intel Core i5 or equivalent
Memory1 GB RAM2 GB RAM
GraphicsGPU with Direct3D 12 / Vulkan 1.0 support (Intel HD Graphics 500-series or better)Any dedicated GPU or modern integrated graphics
DirectXVersion 12Version 12
Storage150 MB available space200 MB available space
Sound CardAnyAny
Additional NotesKeyboard required — the game is played by writing code.Keyboard required — the game is played by writing code.

Interface · 1

  • English

  • Tower Defense
  • Strategy
  • Programming
  • Top-Down
  • Simulation
  • Typing
  • Real Time Tactics
  • Automation
  • PvE
  • 2D
  • Linear
  • Indie
  • Minimalist
  • Level Editor
  • Resource Management
  • Singleplayer

Similar games

Same genres and mood — what people buy with this one