Jump to content
  • Advertisement
Sign in to follow this  
Kuno Heltborg

advices for tower defence in c

This topic is 553 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello.

 

I'm about to make a tower defence in c, but im pretty lost where to start. I haven't made any games before.
Does anyone have some advices where to start maybe some tutorials?

 

Best regards

Share this post


Link to post
Share on other sites
Advertisement

If you want to do it a low level fashion - learning everything, check out http://www.handmadehero.org. <- 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: http://root.xenorate.com/final/towadev/0.5.1-alpha/

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!