Step 4

Testing the battle system


Now that our main “Fighter” code is done, let’s go and test out the actual battle system! Go back to “Main.java” and run the code.

At this point there should be no errors in your code anymore. If there are, go back to the other steps to see where you may have made a mistake.

Once you have tested out the battle system, take a look at the pre-existing code. Use this code as an example and try creating your very own Fighters and Attacks.

Spend some time customizing and adding to the game to really make it your own! You have full control of what these battles can be! Once you’ve played around for a bit go ahead and move on to the next section, where we will add a few more advanced mechanics to what we currently have.