Pet Rescue Saga is game made in Java (1.8+) which aims at being a fun and simple game which can be played either in a terminal or with a graphical interface (using the Swing GUI widget toolkit). It is being developed by two students.
- Pet Rescue Sage inspired gameplay.
- 6 playable levels.
- Multiple command line options.
- Command line interface.
- Complete graphical interface (with music support).
- Logging system:
- Saves each outputs into log files.
- Supports for ANSI codes (colors, clearing).
- Supports for Unicode (through ANSI code).
- Specific support for IntelliJ IDEA to provide a better debugging experience (better debugging experience of outputs than in a terminal).
- Easy to understands level files (permitting modding).
- Possibility to add custom levels to load.
- Customized Java Swing theme.
- Create a fresh Java project in your preferred IDE.
- Add the source code to the source folder of your project.
- Compile.
You can finally run the program if you copy the data directory into the working directory of your project.
- Make sure to have the
java
andjavac
command available from your path. - Open a terminal in the root directory of the project.
- Compile using the following command:
javac -encoding utf8 src/com/g10/prs/*.java src/com/g10/prs/common/*.java src/com/g10/prs/common/print/*.java src/com/g10/prs/entity/*.java src/com/g10/prs/level/*.java src/com/g10/prs/njson/*.java src/com/g10/prs/option/*.java src/com/g10/prs/power/*.java src/com/g10/prs/util/*.java src/com/g10/prs/view/*.java src/com/g10/prs/view/cli/*.java src/com/g10/prs/view/gui/*.java
You can finally run the program using java -cp src com/g10/prs/Program
.
If you have a build version of the game (containing both the .jar and the data folder), you can play the game directly, just use one of the following command:
- To show every command line options you should use
java -jar prs.jar -h
. - To play the game with the command line interface, either use
java -jar prs.jar
orjava -jar prs.jar --view=cli
. - To play the game with the graphical interface use
java -jar prs.jar --view=gui
.
The following command line options are available:
- -v, --version - Show program's version number and exit.
- -h, --help - Show the help message and exit.
- -d, --debug - Add a few debugging informations during runtime (only in the command line interface).
- -s, --seed - Specifies a seed to use, useful to reproduce a specific level (obtain the same colors for each block, and generates the same block for levels that supports refilling).
- --view=<value> - Defines which view should be used (either cli or gui).
Some assets are copyrighted by their rightful authors, either people at King or King directly. We do not pretend to be the original authors of those specific files (please look at the text files included in each assets directory). They are used for educational purposes only.