ForumsProgramming ForumTower defense tutorial

6 7367
krisnaisawesome
offline
krisnaisawesome
15 posts
Nomad

can any one give a tutorial about making a tower defense game?

  • 6 Replies
ExplosionsHurt
offline
ExplosionsHurt
248 posts
Nomad

Making a tower defense game is a very different experience depending on what game creation software you're using.

However, usually the general premise is the same. You've got enemies who walk on a preset path at a certain speed. You would use Pythagoras Theorem to figure out the distance between towers and the enemies.

You would also need a health system for each enemy and other stuff as well.

Unfortunately I cannot give you detailed information unless you tell me what game creation software you're using.

macfan1
offline
macfan1
421 posts
Nomad

Doesn't this go in game walkthroughs?

master565
offline
master565
4,104 posts
Nomad

However, usually the general premise is the same. You've got enemies who walk on a preset path at a certain speed. You would use Pythagoras Theorem to figure out the distance between towers and the enemies.


No you wouldn't, you can just use the distance formula.

http://www.mathwarehouse.com/algebra/distance_formula/images/distance-formula4.gif

What you would still need to use is some basic trigonometry to calculate the angles you need to shoot at.
ExplosionsHurt
offline
ExplosionsHurt
248 posts
Nomad

That distance formula you've got there is really just an extended version of Pythagoras anyway.

Generally the towers shoot fast enough that you can just make the missiles homing. Having towers that miss and you can't control their aiming is horrible design anyway.

BlueJayy
offline
BlueJayy
27 posts
Nomad

http://www.mrsunstudios.com/blog/flash/tutorial-create-a-tower-defense-game-in-as3/

This tutorial doesn't really go into the actual shooting of the towers, but it does teach you about enemy pathing and tower range/placing.

BlueJayy
offline
BlueJayy
27 posts
Nomad

Link was broken. Sorry. :P

[url=http://www.mrsunstudios.com/blog/flash/tutorial-create-a-tower-defense-game-in-as3/]

http://www.mrsunstudios.com/blog/flash/tutorial-create-a-tower-defense-game-in-as3/

Showing 1-6 of 6