I accidentally posted a lower version of the game that had more flaws, and a few less features. This one has a few more minor bugs fixed, and a power attack instead of a normal attack.
Yes, I know. But there was no "post your program" section, so I didn't see a place fit to post my program I spent so much time on. Besides, I saw other people posting their games, so I figured why not? :)
This is awsome! what compiler did you use to make this ?
Haha, thank you very much. I used VC.
"ahh cool. I tries using that but failed epically cos i found it soo bloody confusing "
Yeah, I accidentally missed a parenthesis on one of the if statements. Just debug it, right click "go to location", and add in the parenthesis. I would have edited it in there..but there is no way to edit it, and I didn't want to spam another thread with such a minor correction.
Thanks for the positive comments.
I am currently working on a new rpg that will be 100x neater. (Using functions and arrays to cut down the code length, as well as organize).
As well, the program will actually store potions, weapons, armor ect. Instead of just raising your stats every time you buy the same thing. The RPG will also feature quests, and choices that will change the way you play the game!!
If you would like to get updates on this rpg, please pm me, and I will send you updated source code about every week.
*I am hoping that this will be the best rpg for c++ console!*
"Make use of OOP. You can cut down on code duplication by using inheritance and polymorphesism."
I would definitely do that..if I knew what it meant. I am really new to C++, and am just starting out with the basics atm, but once I get more advanced, and have a good understanding of c++, I will definitely look into this. Thanks for the suggestion.
Looks good but could save your self a lot of problems if you used classes( other words an OOP(object orianted programming) aproach)
but other then that not bad for someone starting out.
You should make V3 non platform-specific. I am on Linux and can't compile it with the windows.h header.
Supplying a binary would also solve the issue because Wine in Linux can run Windows binaries.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.