Mammoth Templates logomammoth templates

Home / Godot / Tower Defense

Video preview

Tower Defense is a finished, playable 3D strategy game you can reskin, extend or ship. Enemies walk a road across a tiled map while you spend gold on five tower types: a splash Cannon, a slowing Frost tower, a chain-Lightning tower that pierces armor, a long-range Missile launcher and a support Beacon that buffs its neighbours. Every tower has three upgrade tiers, can be sold for a refund, and can be set to target the First, Last, Strongest, Weakest or Closest enemy.

Eight enemy types keep waves interesting, including armored bulwarks, healing medics, flying wasps that ignore the road and a Titan boss that resists slowing.

Everything a designer touches is data. Towers, enemies, maps and waves are Godot Resource files with custom scripts, so you add a wave or retune a tower in the Inspector without writing code. Three maps (a gentle valley, a switchback canyon and a two-portal river junction) come with 10, 15 and 20 waves, three difficulty modes and a save system for unlocked maps, best scores and one to three stars per map and difficulty.

The project runs the moment you open it: a title screen with a bot playing in the background, map select, pause menu, settings with volume sliders and full key and gamepad rebinding, victory and defeat screens, an orbit and zoom camera, tower range previews and 1x, 2x and 3x speed.

There are no external assets to license. All models are generated from primitive meshes in code (flat-shaded low-poly), the UI is saved scenes with a saved theme and all 20 sound effects and 3 music loops are synthesised by a Python script you can edit and re-run. The code is typed, commented GDScript, and a 216-check smoke test plays three complete maps to victory with an auto-playing bot, plus purchase, upgrade, sell, targeting, saving and input checks.

The documentation walks through adding a tower, an enemy, a map and a wave. Touch input is not included.

Highlights

  • 3 maps with road and build grids, 10 / 15 / 20 waves, the next map unlocks on victory (one map has two portals)
  • 5 tower types with 3 upgrade tiers each, sell refunds, support-aura buffs and per-tower targeting modes
  • 8 enemy types: runner, brute, swarmer, armored bulwark, healing medic, flying wasp and a boss
  • Waves, towers, enemies and maps are .tres Resource files with custom scripts, editable in the Inspector
  • Economy and difficulty: gold, wave bonuses, lives, Easy / Normal / Hard, score and 1 to 3 stars
  • Saved progress: unlocked maps, best score and stars per map and difficulty
  • Title, map select, pause, settings (volume, effects, keybinds, gamepad) and victory / defeat screens; mouse, keyboard and gamepad
  • Orbit / zoom / pan camera, range preview, particles, lightning beams, procedural audio, 216-check smoke test, CC0