A simple, text-based RPG using Java
In this game you put yourself into the shoes of a knight whose dream is to be recognized by all in the kingdom. You get an opportunity to realize your dream when a dragon raids the kingdom and the princess goes missing. You decide to defeat the dragon to leave your mark in the kingdom's history.
- 'X' on the map marks your current position. Give the appropriate input to move around the map.
- You will meet several enemies along the way. Know when to run and when to fight. You might get help from some people as well.
- Can't defeat a foe yet? Then maybe you should explore a bit. Maybe you will stumble across something useful.
To run the program, run GameSystem.java which has the main function. All output is on the console for now. Type the following in the console and hit Enter key when prompted:
- N : Move North
- S : Move South
- E : Move East
- W : Move West
- F : Fight (Perform a basic attack with sword)
- R : Run away from battle
The game is by no means perfect but does a good job in demonstrating OOP concepts like Abstraction, Encapsulation, Polymorphism and Inheritance.