Petiverse is an interactive experience designed for players aged 7 and above. It allows users to adopt, care for, and interact with a virtual pet. Players must feed, play with, and take care of their pet to maintain its happiness and health. Neglecting the pet can lead to illness or even losing the pet. The game includes features such as various pet choices, and parental controls to manage playtime.
To build and run this game, the following libraries and tools are required:
- Java Development Kit (JDK) - Version 17+
- JavaFX - Version 17+ (for graphical interface)
- JUnit - Version 5+ (for testing)
To build the Petiverse from source, follow these steps:
-
Install Java and JavaFX:
-
Clone the Repository:
Run the following command to clone the repository:
git clone ssh://git@gitlab.sci.uwo.ca:7999/courses/2025/01/COMPSCI2212/group30.git cd group30 -
Navigate to the
srcFolder:Change into the
srcdirectory where the Java files are located:cd src -
Compile the Java Files:
To compile all Java files, run the following command (ensure you are in the src directory)
javac *.javaThis will compile all
.javafiles in thesrcfolder and generate the corresponding.classfiles.
After compiling, you can run the game with the following command:
java MainMenuThis will launch the Main Menu of the game, from which you can start a new game, load a previous save, access instructions, parental controls, or exit.
-
Launching the Game:
- Run the application to enter the Main Menu.
- Choose from Start New Game, Load Game, Instructions, Parental Controls, or Exit.
-
Starting a New Game:
- Select New Game and choose from 1 of 3 pets.
- Name your pet to create a new save file.
-
Gameplay Mechanics:
- Track Pet Stats: Monitor health, sleep, fullness, and happiness.
- Commands: Interact with your pet by feeding, playing, sleeping, gift-giving, exercising, and taking it to the vet.
- Warnings & Penalties: If a stat falls below 25%, a warning appears; at 0%, penalties occur (e.g., pet illness or loss).
- Inventory System: Items such as food and toys are stored in an inventory.
- Scoring System: Gain points for positive actions; lose points for neglecting your pet.
-
Saving and Loading:
- The game auto-saves at checkpoints.
- Users can manually save via the Save Game option.
- If a save file is missing or corrupted, a new game will be initialized.
If required, use the following credentials for testing:
- Test Account Username:
test_user - Test Account Password:
test1234
- Navigate to Parental Controls in the main menu.
- Enter the parent password to access settings.
- Available options:
- Set Play Time Limits: Define when the child can play.
- View Play Statistics: Check total and average playtime.
- Revive Pets: Restore a lost pet to full stats.
- Exit Parental Controls if no changes are needed.
- The game UI follows JavaFX guidelines for a smooth experience.
- Error handling ensures input validation and clear error messages.
- If a feature doesn’t work, default values are applied to prevent crashes.
- If you face sprite issues, the game falls back to a default pet image.
- Daniella Misyura
- Adrian Caricari
- Marcus Cameron
- Fin Faniyi
- Kayden Jaffer
Thank you for reviewing Petiverse! 🐾🎮