Java RPG
A relatively simple RPG programmed in Java. Fight monsters and bosses, explore different cities, and empower yourself with items at the shop.
Nice Game. I would suggest that you add an input filter so the program doesn't crash if the user accidentally enters a String instead of an Int.
@CannoliCoder Thanks, and you're right I need to do that. I was also considering just modifying it so the scanner always takes in String instead of int.
You can go to mechanics, go to character, and rig the game. =)
(Although it's not really fun that way.)
@nN34398Ff But it's fun to create a "hacked" version by yourself and add stuff to it....
cool game!
Instead of doing this:
if(choice == 1)
do_something()
else if(choice == 2)
do_something_else()
you can use a switch/case
switch(choice) {
case 1:
do_something();
break;
case 2:
do_something_else();
break;
@eidhernan I've been using switch/case in my newer projects, thanks for the suggestions though
How do you move? the wasd keys don't work for me
@MaxwellZhang1 For some reason, you have to use capital letters
@MaxwellZhang1 you have to type "wasd", then press enter.
@MaxwellZhang1 You have to type in w, a, s, or d then press enter for each move
ok thanks
Cheap boats, only 5k gold ;D
@a5rocks You gotta slay the dragon then talk to the king, he gives you 5000 gold
@DrakeMayes How do you talk to the king?
@ShadedFlame Go to Fazoria (the place north of the place you start in) then go to the palace, it gives you an option to talk to him
how do you leave to another place
once you reach the map
Amazing!! And you did it in Java!
@DrakeMayes can you make in were when you beat the game it restarts with your gear and the creatures get harder and receive more gold, and make the game save in the file.
@DrizztVerevkin That would be too difficult as that function requires him to write the entire program almost again.
Haha, worked hard, got good, and tried swimming. Facepalm
@ShadedFlame FaCePaLm
I would suggest learning java swing so you can actually add a gui to the game. Other than that its great.
@JordanDixon1 Java swing is mostly outdated now, people use JavaFX
@MatthewDoan1 Yeah, but I don't think its on repl.it or supported by repl.it yet, is it?
@JordanDixon1 No, sadly, and OpenJDK doesn't have support for JavaFX. Oh well...