If you’re like us, you have an unusual fascination with tower defense games – I say unusual because the design of a tower defense game is so simple that I often times wonder why we like them so much. Therefore, I present to you my 10 part series in creating a tower defense game (in AS2). If you have any concerns or questions please send us your feedback through the Contact Us page!
I break the tutorial into 10 parts: Waypoints and Enemies, Placing Towers, Rotation and Realism, Starting the Tower Attack, Adding Waves of Enemies, Tower Powers, Gold and Upgrades, Poison Towers, and the Final Product. There’s code available for download on every part, so click through to begin exploring the tutorials and start your own Tower Defense game!
We are currently up to Part 10 – Let me know what you think by posting a comment or spreading the word about the site
How to build a tower defense flash game – Part 10 – Win or Lose!
- How to build a tower defense flash game – Part 1 – Waypoints and Enemies
- How to build a tower defense flash game – Part 2 – Placing Towers
- How to build a tower defense flash game – Part 3 – Rotation and Realism
- How to build a tower defense flash game – Part 4 – Starting the tower attack!
- How to build a tower defense flash game – Part 5 – Wave after Wave of Creep Kill’in!
- How to build a tower defense flash game – Part 6 – Tower Powers!
- How to build a tower defense flash game – Part 7 – Gold and Upgrades!
- How to build a tower defense flash game – Part 8 – Poison Tower and Basic Startup!
- How to build a tower defense flash game – Part 9 – Scores and Wave Timeline!
Intro
If you’re like me you have an unusual fascination with tower defense games – I say unusual, because the design of a tower defense game is so damn simple that I often times wonder why I like them so much.
(Note: for those who may have stopped by and are wondering “what is this tower defense thing he is going on about”. I present you this mini-description)
Tower Defense Description
- The enemy starts at one side of a map and travels along a path towards a destination ( usually on the opposite side of the map).
You create towers along these paths that fire on the enemy while they pass by.
Attempt to survive wave after wave of stronger and stronger enemies by upgrading your towers with more powerful abilities.
Either win the game by beating the final wave (usually 40 or 50) or keep going till you lose and there by get bragging rights when you die at wave 97.
In my humble opinion there is not a casual game that better defines casual, then a tower defense game. The artificial intelligence is seemingly so basic and yet the games are often not beatable the first time around until you get a feel for it. The time flys by as you tab between windows in “Firefox” or “IE” to see how the battle is going and occasionally upgrading or building new towers when necessary. Who hasn’t played a tower defense game and lost on the 48th level of a 50 level game, because you didn’t plan for multiple types of enemies to attack at the same time.
You may wonder why this is at all important in the creation of a tower defense game? The reason I feel that this is important is that I HAVE played tower defense games that haven’t been so great. So if I’m gonna teach this, I want people to make games that I find enjoyable. There is nothing more frustrating than making a product with all the bells and whistles and finding out it’s not enjoyable to play. So here is what I think are qualities that are important to a tower defense game.
- The game shouldn’t rush the player, but additional “score” should be given to those who plan quickly
No resource management of any kind – This means that you always know how much damage your tower does AND you don’t need to “build” specific tower upgrades to unlock the upgrades of a tower.
tower formation and strategy is key – The shape of the map and how much room to build towers should be taken seriously. If all you need to build is one type of tower to beat a game whats’ the fun in that?
Ending are great (if you have some bad ass boss on level 50), but so are never ending ones where you can compare your game with other people. However, which one to choose is based solely on how you design your map and the tower upgrades you give.
MOST IMPORTANTLY: Don’t go upgrade crazy with your towers. Just because you can create a lazer/triple damage/slow tower, doesn’t mean you should. I’ve found the TD games I like the most have towers that handle one function and do it well. There are always exceptions, but they are few and far between.
I’m going to start to list out the parts on this introduction as I write them and above all I intend to finish this tutorial. What we will have at the end of this will hopefully something special and maybe you’ll learn something along the way.
Anyway on to the show –
- How to build a tower defense flash game – Part 1 – Waypoints and Enemies
- How to build a tower defense flash game – Part 2 – Placing Towers
- How to build a tower defense flash game – Part 3 – Rotation and Realism
- How to build a tower defense flash game – Part 4 – Starting the tower attack!
- How to build a tower defense flash game – Part 5 – Wave after Wave of Creep Kill’in!
- How to build a tower defense flash game – Part 6 – Tower Powers!
- How to build a tower defense flash game – Part 7 – Gold and Upgrades!
- How to build a tower defense flash game – Part 8 – Poison Tower and Basic Startup!
- How to build a tower defense flash game – Part 9 – Scores and Wave Timeline!
- How to build a tower defense flash game – Part 10 – Win or Lose!
Click here for a other articles in the article section.

[...] If this is the first time you’re viewing the page you may want to start at the beginning by clicking here or you can go to the previous tutorial Part 7 by clicking the below link: How to build a tower [...]
[...] can click here to go back to the [...]
[...] while it is a complete game we still have more work to do… Until next time… You can click here to go back to the [...]
[...] can click here to go back to the [...]
[...] To go back to How to build a tower defence flash game – Intro (Intro) Click here [...]
[...] If this is the first time you’re viewing the page you may want to start at the beginning by clicking here) or you can see the previous part 6 if you just missed that one [...]
[...] can click here to go back to the [...]
[...] both the first and forth article we will now add the ability to destroy the creeps. You can Click Here to go back to the [...]
[...] we will be combining both the first and second articles and adding rotation and realism. You can Click Here to go back to the [...]
this game is shit you should be ashameed you fucking bellends