run and write README1

This commit is contained in:
2026-05-14 16:47:42 +03:30
parent d77fc1f3f3
commit de808b0541
29 changed files with 88 additions and 2 deletions
Binary file not shown.
@@ -2,6 +2,6 @@ package org.project.item.weapons;
public class knife extends Weapon{ public class knife extends Weapon{
public knife(){ public knife(){
super(15 , 8); super(18 , 8);
} }
} }
+1 -1
View File
@@ -1,7 +1,7 @@
# Fourth Assignment - Java Knight ⚔️ # Fourth Assignment - Java Knight ⚔️
A turn-based RPG with Roguelike elements which can be run in the terminal. A turn-based RPG with Roguelike elements which can be run in the terminal.
### **Prologue: The Legend of Javanest** ## **Prologue: The Legend of Javanest**
*For centuries, the land of Javanest lived in peace, until a magical Dragon attacked, plunging the realm into absolute darkness. With a wicked curse, the Dragon transformed the innocent people into horrific monsters: Goblins, Skeletons, and Vampires. Retreating to its impenetrable Castle, the Dragon divided the three keys to its lair and hid them among these cursed creatures. Now, it is your duty to step up and save the land. You must battle these monsters, recover the unique key from each monster type, and finally slay the Dragon to break the curse and restore peace to Javanest!* *For centuries, the land of Javanest lived in peace, until a magical Dragon attacked, plunging the realm into absolute darkness. With a wicked curse, the Dragon transformed the innocent people into horrific monsters: Goblins, Skeletons, and Vampires. Retreating to its impenetrable Castle, the Dragon divided the three keys to its lair and hid them among these cursed creatures. Now, it is your duty to step up and save the land. You must battle these monsters, recover the unique key from each monster type, and finally slay the Dragon to break the curse and restore peace to Javanest!*
### **Introduction** ### **Introduction**
+86
View File
@@ -0,0 +1,86 @@
# HELLO and Welcom to Java-knight⚔️
---
## Introduction
Goguryeo has been conquered by the dragon mercenary of Emperor Tso. As the savior of Goguryeo, you must conquer it. To do this, you must first obtain 3 keys.Each enemy army has 1 key, but we do not know which member of that army has it. Fight them to obtain the keys. Then go fight the dragon and become the ruler of Goguryeo. Dont forget java knight is a turn-based game and enemy can attak you.
---
## HOW TO RUN GAME
first you should go to project file and open src\main\java folder then open terminal and use this promote to compile project
```bash
javac org/project/Main.java
```
then use this promte to run the game
```
java org.project.Main
```
Now you can play!
## About game
---
Hp: is your heart
Mp : is your mana
Xp : is your experiences
**After any fight if you win . we will full your Hp and give you some Mp and you got 1 Xp and we add 5 Mp&Hp to MaxHP&Hp**
At first you shout choose your player (Knight - Wizard - Assassin)
- **⚔️Knight**: Hp:50 Mp:50 Weapon:sword(23 Damage)
- **🗡️Assassin**: HP:60 Mp:80 Weapon: knife(18 damage)
- **🧙‍♂️WIZARS**: HP:90 Mp:60 Weapon: wood(16 damage)
After that you should choose your location. in each location exist one enemy such as:
- **Goblin** 👹: Hp:35 Weapon: knife(18 Damage) Special : critical attack
- **Skeleton** ☠️: Hp:50 Weapon: wood(16 Damage) Special: relive after dead
- **Vampire** 🦇: Hp: 60 Weapon : wood(16 Damage) Special : rob Hp
- **Dragon (Final Boss)** 🐉: Hp: 200 Weapon:fire(25 Damage) Special : Fire + break Armor
In each turn enemy can use 1.light attack 2.heavy attack 3 special abilities
Player in each turn can use :
1. **Light Attack:** Deals moderate damage and costs **NO Mana**. (Note: If the player runs out of Mana/Stamina, this is the ONLY action they can perform.)
2. **Heavy Attack:** Deals high damage, medium Mana cost.
3. **Defend:** Completely blocks or significantly reduces the damage of the enemy's *next* strike. Medium Mana cost.
4. **Heal:** Restores a portion of the player's HP. Medium-high Mana cost.
- 4.1 Flask : Give you Hp
- 4.2 Teriak : Give you Mp
5. **Special Ability:** A unique class-based ultimate move (Highest Mana cost):
- **Wizard** 🧙‍♂️: Casts a devastating spell that damages the enemy while simultaneously replenishing some HP.
- **Assassin** 🗡️: Turns invisible, dodging the next incoming attack completely and guaranteeing a *Critical Hit* on their next turn.
- **Knight** ⚔️: Performs a shield bash that stuns the enemy, forcing them to skip their next turn while dealing heavy damage.
---
## About oop
In this project we use oop. we have 2 interface
1. Entity
- **Player**(Knight - Wizard - Assassin)
- **Enemy**(Goblin - Skeleton - vampire - Dragon)
2. Item
- **Armors**(Enemy armor - Knight armor - leather armor - wooden armor)
- **Consumable**(Flask - Teriak)
- **Weapon** (Sword - Weapon - Wood - DragonWeapon)
---
### **For control game you should input number . if you input invalid number you should input again**
![cover](Readme_Pictures/image.png)