Make a tower defense game with AI

Design a co-op tower defense game: define the enemy path, shared resources, tower roles and waves. Test a live example and write a focused AI prompt.

Begin with one path and three tower roles

A tower defense game is a sequence of planning decisions: where to build, what to upgrade and when to save resources. Begin with a single readable enemy path and a small number of building sites. Give each tower a reason to exist, such as cheap single-target damage, splash damage or slowing enemies. More tower names do not automatically create more strategy.

Describe what enemies are trying to reach and how the team loses. For a cooperative game, decide whether players share money or own separate budgets. A shared pool makes collaboration immediate, but two players can try to spend the same coins at once. Specify that purchases check the available balance and that everyone sees who built each tower. Clear feedback matters as much as attractive effects.

Write waves with a purpose

The first wave should teach the path and basic damage. A later wave can introduce a faster enemy, then a tougher one that rewards upgrades. Start with five waves and a final test of the team rather than requesting a hundred waves with no difficulty plan. Say how long the team has between waves and who can start the next one.

State whether tower ranges are shown before a purchase, whether towers can be sold and how much money a sale returns. Make enemy health and remaining base health readable on a phone. If the map can pan or zoom, test whether selecting a building site accidentally moves the camera. The first version can use simple shapes while you check that these decisions feel clear.

Test teamwork and the economy

Try a match alone if the game allows it, then with friends. Check that a full team does not receive an unintended advantage or an impossible shortage of resources. Test two players buying at the same time, upgrades during a wave and the final enemy reaching the base. A win should happen only after the last required enemy is defeated, and a loss should stop the wave cleanly.

Watch where money goes. If one cheap tower always wins, change its role or the enemy mix before adding more tower types. If the team spends everything and still loses early, explain the economy more clearly or adjust the first waves. Keep a note of the wave where trouble begins. Ask players which decision they would change on a second attempt; that tells you whether the strategy is understandable.

Use a live example, then build a bounded version

The tower defense games below come from the current public library. Open a game to see its controls, player range and age rating. Browser play is free. To make your own, open Create and describe your map, tower roles, team resource rule and exact ending. Building has daily limits and may use credits; do a small test before expanding the project.

For an original theme, try gardeners protecting seedlings or robots shielding a research station. Use assets and names you own or have permission to use. After the first playable build, prioritize useful feedback: 'show a tower's range before I buy it' is better than 'add more detail.' Share a room invite with your testers and play through the whole match before presenting it as finished.

A prompt to start from

Make an original co-op tower defense game for 1 to 4 players with one winding path and five waves. Give the team a shared coin pool, a cheap dart tower, a splash tower and a slowing tower. Show ranges before buying, prevent overspending when two players buy together, and win after the fifth wave is cleared.

Create your game

Public games to try

More game guides

Help with rooms, accounts and build limits