Writing a C++ RTS Game - General help?

I'm trying to code an RTS style game and having trouble on finding decent resources to help me learn things such as pathing, AI etc. Does any have some suggested books/links/websites to help me out?
I would be interested in helping. Would this be in console, Win32, etc?
I don't think i would be able to help, but i would love to see the final result!
I love RTS games!

But as Superdude was saying what platform will it be?
Which graphics lib are you using?

Lazy foo has great SDL tutorials. If you're going for 2D opengl, he has those too.

thecplusplusguy also has great tutorials, despite his thick Hungarian accent. (Youtube)

I'm not too sure on SFML, but that's a great lib also.
Yeah, SFML is what I am using now. It is easy to use.
I'm using the C++ and SFML coded game engine Game Develop (which I highly recommend!). http://compilgames.net/


I've already written several games in it, of various types, and don't have a great troubles with using the program. I'm just struggling with RTS specific things such as pathing* and AI and am looking for some general tutorials on writing these kind of functions.

*Game Develop already has A* search implemented, but I wanted to look at other searches and how to go about implementing them.
Last edited on
What you want is a course on algorithms. You need to learn about things like Big O Notation, search pattern algorithms, mutating algorithms, etc (if you want to have top notch stuff that is).

If you're a united states citizen you might want to check out some of MIT's online cources, particularily the 6.00 courses. The course is in python, but python is easy to learn as you go, and the information in those courses are probably right up your alley.

edit : if you want a cheat on pathing, google a* algortihm
Last edited on
@roger911
I'm not in united states, would there be any chance that i could see these courses?
Pardon my ignorance, but what is pathing?

EDIT: I googled "A* algorithm" and looked it up on wikipedia
Last edited on
Studying an open source RTS engine could be very useful too -> http://stratagus.com/

EDIT: Here's another one -> https://github.com/spring/spring
Last edited on
IIRC MIT made its courses exclusively available to US citizens, so the site checks for the location of your IP address before allowing you see content. The only ways you can view the courses is if you're computer is located in the states, or if you have a US proxy you can use.
IIRC MIT made its courses exclusively available to US citizens
I didn't see anything saying it is only available to US citizens. Easy way to check http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/
I didn't see anything saying it is only available to US citizens. Easy way to check http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/


That's a lot of help, thanks!
Topic archived. No new replies allowed.