I'm learning a variety of languages at the moment, brushing up on C++ and introducing myself to Python in particular.
My goal is to create a very short role-playing game eventually. I have tried to use things like RPG toolkit, but I feel like it's not flexible enough, so I'm starting from scratch.
The only problem is, I learn best by example, but unfortunately I can't find any examples of, say, RPG games written in C++...at least not any coding examples.
I am familiar with intermediate - advanced concepts in C++, I'm just having trouble putting them all together to create a game. SDL is especially lost on me at the moment.
So anyway, what I'm looking for is snippets of code...like battle systems...or just cutscenes. Anything having to do with a top-down RPG. I would like to look at the code and get a general idea of what it's doing so I can write my own.
So does anyone know where I can find C++ (especially) or Python examples of RPG code? Thanks.
Copyright © 2024 Q2A.ES - All rights reserved.
Answers & Comments
Verified answer
First stop, gamedev.net
Head over on to their forums and jump in. There are a LOT of people there and the place is always full of good advice. There's places for complete noobs and advanced veterans, and they also have a lot of nice articles and reading materials. They provide reviews on game programming books, as well. The site is used by professionals and amateurs alike.
Second stop, sourceforge.net
This one may take a bit longer, but you know better than I what you are looking for. Do some keyword searches on this site or try to search by category. It's a massive repository for open-source projects, and it plays host to a lot of games and game engine projects. Many of these are in active development, while others are dead. You can download the code for anything that looks interesting and take a look and what they did to achieve their goals -- or what they were planning to do. There are thousands and thousands of game-related projects here.