The “The Legend of Hyrule” is a Java-based 2D game application that brings players into an immersive world filled with characters, adventures, and challenges. This README provides a brief overview of the story of the game, the rules of the game, how to play the game, and the expected outcomes of the game.
In the enchanting realm of The Legend of Hyrule, darkness looms over the picturesque village. Unveil your destiny as the valiant warrior chosen to embark on a legendary quest to save your beloved village from an ominous curse. The only hope lies in the mythical Diamond of Radiance, a gem of unparalleled power that can dispel the shadows and restore harmony. The sage Eldrith calls upon you, for only you possess the courage to rise against adversity and become the hero Minish Haven desperately needs.
As the sun sets on Minish Haven, the sage Eldrith reveals that an ancient curse threatens the village's very essence. To save Minish Haven, you must find the legendary Diamond of Radiance hidden deep within the mysterious Forest of Whispers. Only this gem can break the curse and return life's vibrancy to the village.
The game follows a set of rules that govern the player’s interactions within the game world.
-
As the game starts, the player will be prompted with the main screen having the options to choose between
NEW GAME
,LOAD GAME
, orEXIT
. -
If the player loses the game, he can either
Start Over
, orQuit
the game. -
In order for the player to win the game, he must collect the diamond.
-
Player cannot walk or run into the trees to hide from monsters.
-
In order to move the character in the North-South-East-West directions, you have to use the following keys:
A
: Move LeftS
: Move DownD
: Move RightW
: Move Up
-
Press
Esc
to view the following options:Full Screen
Music
Sound Effects
Control
End Game
Back
-
To select items or options, press
Enter
. -
To attack the monsters, press
Enter
for sword and pressf
to cast a fireball. -
Pressing the
p
button will pause the game with the messagePAUSED
on the screen. To resume the game you can simply press thep
button again. -
Pressing the
c
button will display a board how the Player Stats which includes vel, HP, Mana, Strength, Agility, Attack, Defense, XP, Next Level, Gold, Weapon, and Armor. The player will also be able to choose from his collected items. -
To interact with an NPC (non-player character), approach them and press the
Enter
key. -
Pressing the
Enter
key also enables the player to open the chest. -
Use the
Spacebar
key to guard (This helps in reducing the damage by 2). -
The player can go to the lake or to the healer which is the cat and press the
Enter
to heal. -
To collect an item, simply walk over it.
- 💰 Gold coins: These coins are used to purchase items, equipment, upgrades, or services within the game.
- 🕯️ Candles: Help to ward off the shadows of the unknown.
- ⛺ Camping Tent: To sleep and hide from the monsters.
- 🔮 Mana: To cast fireballs.
- ❤️ Red Hearts: Increase player’s lives.
- ⚔️ Weapons: To fight against monsters.
- 🛡️ Armor: To guard from monsters.
- ⚫ Black Crystal: To gain health points.
- 💎 Treasure: Collect the diamond to win.
- Clone the repository.
- Navigate to the project directory where src folder is saved using your terminal.
- Compile the code using:
javac character/*.java tile/*.java object/*.java monster/*.java main/*. java
. - Run the game:
java main. Main
.
The Legend of Hyrule Game awaits your courage and wit. Face off against the Forest Monster, collect hidden loot, and unravel the secret of the Diamond of Radiance. Become the hero The Legend of Hyrule yearns for and bask in the glory of your valiant deeds!
- KOWLESSUR Hritika Chooshini
- VENKATASAMI Jaanavi
- YENKETERAMDOO Gitanjali
A 2D RPG created for OOP Project - BSc(Hons) Data Science course by Univesity of Mauritius run jointly with CY Cergy Paris Université.