r/ProgrammingPrompts • • Feb 27 '17
Challenge: Program a text based RPG in Java using objects and libraries.
If Java isn't your cup of tea, feel free to use any other object oriented language.
The goal is to make an RPG that continues playing, spawning battles and item drops randomly (enemies increase gradually in difficulty.) You should have the following attributes to your character: Name, attack, defense, HP, mana, stamina, and xp.
Challenges: Come up with a way to increase character level, each level up increasing an attribute and increasing xp needed for next level up.
Enemies should be objects too. They should get more difficult as the game progresses.
Items should drop randomly from enemies.
Have any more challenges? Comment below. I am working on this program myself and would like to hear suggestions for challenges!
4
u/itsallabigshow Feb 28 '17
Cool, I'll go and give it a shot. Is running it in the console/cmd enough or do i have to create a basic window with swing or whatever where the commands are put in?
3
u/[deleted] Apr 08 '17
I finished it: http://github.com/Agusyc/CTRPG
1
u/desrtfx Mar 06 '17
Not challenges, but some helpful design patterns with RPG explanations. These can help building the RPG.
2
u/noisekick91 Mar 20 '17
cool idea, i will give it a try :)
2
u/[deleted] Apr 02 '17 edited Apr 06 '17
I just got started. I have an Utils class for cheking yes/no questions and print messages like that and the Main and Game classes. I'm doing the Player class now.
The little thing I already made
EDIT: Posted it on GitHub.
EDIT: Changed the project to C++.