Sign in to follow this  

advices for tower defence in c

Recommended Posts

If you want to do it a low level fashion - learning everything, check out [url][/url]. <- best resource i know to learn game development and every aspect of them.


Also a tower defence game is not really that hard, just break it down:


You do not need any physics system at all. Just simple collision detection tests.

At start you can simply use waypoints for the creeps and move from point to point - can be easiely extended to use a proper path finding system.

Maps can be fully made with tiles, super simple to create, edit and render and can be produced with extistent tilemap editors like "TileD Map Editor".

Creep movement is just a linear interpolation between two points over time.

The only part which may be tricky (depending on your math skills) is to predict the enemies target point for the towers depending on the enemies speed - If you just use the enemies current position as a tower target you mostly will not hit the enemy (depends on the tower placement).


If you need some help, i have made a full tower defence game before, so i know how everything works - so dont hesitate to ask.

See: [url][/url]

Edited by Finalspace

Share this post

Link to post
Share on other sites

If you don't even wrote any game yet, you should try to make something simple before programming a hard projects like tower defense or even a platformer, just because you need to know complex algorithms like collision detection, triggers and other. I advice you to write snake and tetris, then solitaire and chess. The way of game programming is about programming a lot. So you need to write a code everyday. But you don't need to scare, because you should learn with progressive increase of complexity of your algorithms and logic. I wish you professional growth and big success in game development!

Edited by yutsura

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this