ForumsProgramming ForumTower defense tutorial

6 2813
krisnaisawesome
offline
krisnaisawesome
16 posts
0

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

  • 6 Replies
ExplosionsHurt
offline
ExplosionsHurt
262 posts
0

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
442 posts
0

Doesn't this go in game walkthroughs?

master565
offline
master565
4,239 posts
190

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
262 posts
0

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
0

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
0

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