AI tower defense maker

Make your own tower defense game with AI

Yes, AI can make a tower defense game. Describe the path, the towers and the enemies, and Gameable's AI agent builds a 2D browser game where enemies march along a route in waves, you place towers that fire automatically, earn gold for each defeat and spend it on more towers and upgrades. Balancing difficulty takes a few rounds of feedback.

Below: a tower defense game playing itself, drawn with sprites from Gameable's built-in library, free for every game.

What you get

What the AI builds into your tower defense game

You do not have to ask for any of this. It is what Gameable's agent sets up when it recognises this kind of game.

A path and build spots

A map with a route enemies follow from entrance to base, and places beside it where towers can go.

Towers that target and fire

Each tower has a range, a fire rate and a damage value, and picks targets by itself once placed.

Waves of enemies

Enemies arrive in numbered waves that add more, tougher or faster units, with health bars above them.

An economy

Gold for every enemy defeated, tower prices, and a lives counter that drops when something gets through.

Clear tap-to-place controls

Pick a tower, tap a spot, see its range. It works with a mouse and on a touch screen.

Example prompts

Tower defense prompts you can copy

A good prompt names who you play as, what you do and what makes it hard. Paste one of these into Gameable, or change the details to make it your own.

Castle defense

“A tower defense game where skeletons and zombies walk a winding path to my castle. Three towers: archer (fast, weak), cannon (slow, splash damage), ice mage (slows enemies). Ten waves, 20 lives, gold for each enemy.”

Space lanes

“A sci-fi tower defense where alien ships fly along a path through an asteroid field. I place laser turrets and missile launchers. Every fifth wave is a boss ship.”

Garden defense

“A cute tower defense where bees and spiders march towards a picnic. Towers are plants that shoot seeds. Let me upgrade a tower twice by tapping it.”

Honest limits

What works well and what does not

AI is good at some parts of a tower defense game and weaker at others. This is what to expect on Gameable today.

What Gameable's AI can and cannot build for a tower defense game
What you ask forHow it goesGood to know
A path, towers, waves and goldWorks wellState the tower types and what makes each different.
Tower upgrades and sellingWorks wellSay how many upgrade levels and what each one changes.
Balanced difficulty across many wavesTakes a few roundsPlay it through and report where it is too easy or impossible. Balance is the hardest part of this genre.
Several mapsTakes a few roundsGet one map feeling right, then ask for another.
Free placement with enemies finding their own routeTakes a few roundsPossible on a grid, but a fixed path is more reliable.
Co-op or versus multiplayerNot supportedGames are single player.

How it works

How to make a tower defense game without coding

  1. 01

    Describe it

    Type your idea into the idea box in a sentence or two. Name the hero, the goal and anything you care about.

  2. 02

    Watch it get built

    The AI agent plans the game, writes the code, tests it and loads it into a live preview next to the chat. This takes a few minutes.

  3. 03

    Play, change, publish

    Play it straight away. Ask for changes in plain words, then publish it to the Arcade to get a link anyone can open.

Want the detail? See how the agent builds a game.

Keep going

Things to ask for next

The first build is a starting point. These are the kind of follow-up messages that work well. A version is saved after every change, so you can always step back.

  • “Wave 6 is too hard. Give me more gold before it.”
  • “Add a tower that slows enemies instead of damaging them.”
  • “Show each tower's range when I tap it.”
  • “Add a fast enemy that has low health.”
  • “Add a button to send the next wave early for bonus gold.”

From the Arcade

Games made with Gameable

Published by people in the community. Open one to play it in your browser.

See all games

FAQ

Questions about making a tower defense game with AI

Can AI make a tower defense game?

Yes. The parts of a tower defense game are well defined: a path, enemies in waves, towers with range and damage, and gold. Gameable's agent can build a working version from a description. What it cannot do by itself is perfect the balance, so plan on playing it and giving feedback.

How do I add waves, towers and upgrades?

Name them in your description or add them afterwards in the chat. For example: "add a third tower that slows enemies" or "add five more waves, with a boss on wave 15". The agent edits the game and reloads the preview, and each change is saved as a version.

How do I balance the difficulty?

Play a full run and note the wave where it breaks. Then tell the agent something specific, such as "I run out of gold on wave 4" or "the cannon tower makes everything too easy". Small, concrete notes work much better than "make it more balanced".

Do I need to know how to code?

No. You describe the game and Gameable writes it, and changes it whenever you ask.

Written by the Gameable team. Last updated .