This commit is contained in:
Reza
2026-05-10 22:55:52 +03:30
parent 5a412956ce
commit 31ddda225b
+6 -9
View File
@@ -1,4 +1,3 @@
```markdown
# Java Knight ⚔️ A Turn-Based Roguelike RPG
A text-based role-playing game developed in Java, focusing on **Object-Oriented Programming** principles.
@@ -64,16 +63,15 @@ The project strictly follows **Object-Oriented Programming** principles.
| Encapsulation | All fields are private; access only via getters/setters |
| Method overriding| `specialAbility()`, `attack()`, `takeDamage()` overridden in subclasses |
---
## 🎮 How to Play
### Starting the Game
- Run the program. You will be asked to **choose a class**:
- `1` Knight (high damage)
- `2` Wizard (high HP)
- `3` Assassin (high mana)
- `1` Knight (high damage)
- `2` Wizard (high HP)
- `3` Assassin (high mana)
- A random location is selected, and an enemy appears.
### Main Menu
@@ -106,9 +104,9 @@ After your action, if the enemy is alive, it attacks you (unless stunned by Knig
### Merchant & Inventory (Bonus Features)
- Gold earned from enemies can be spent at the **Merchant** (option 3 in main menu).
- You can purchase:
- **Iron Sword** (30 gold)
- **Knight's Armor** (50 gold)
- **Healing Flask** (20 gold)
- **Iron Sword** (30 gold)
- **Knight's Armor** (50 gold)
- **Healing Flask** (20 gold)
- Items go into your **inventory** and can be used in or out of combat.
- Flasks are consumed upon use.
@@ -129,4 +127,3 @@ The game uses **ANSI escape codes** for colorful messages:
- Three distinct character classes with unique abilities
- Advanced combat mechanics (armor breaking, enemy resurrection, lifesteal, stun)
- Full turn-based game loop with enemy spawn, key collection, and final boss
```