Java engine for a text-based rpg.
- Modify the run configuration for
rpg.classes.Main
to include the command line argumentexample
. - Run
rpg.classes.Main
from IntelliJ to run the example dungeon.
- Compile with Maven:
mvn clean compile assembly:single
- Run the compiled jar with the argument
example
to run the example dungeon:
java -jar target/TextBasedRPG-1.0-SNAPSHOT-jar-with-dependencies.jar "example"
- look/examine
- go/head/travel
- take
- use
- drop
To use one object on another, the basic construction is use <item> on <object>
, but feel free to experiment to get the outcome you want!
As a shorthand, you can travel to an adjacent room by typing only the direction, eg: east
is the same as go east
.
Explore your surroundings and reach the game-over screen! Make sure to look
around each room for clues.