Java RPG
DrakeMayes (39)

A relatively simple RPG programmed in Java. Fight monsters and bosses, explore different cities, and empower yourself with items at the shop.

You are viewing a single comment. View All
eidhernan (38)

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;
DrakeMayes (39)

@eidhernan I've been using switch/case in my newer projects, thanks for the suggestions though