3 Commits
Author SHA1 Message Date
HadiSharifi 1746f3c37e update README 2026-05-11 10:22:32 +00:00
HadiSharifi d91bc6541c update location names 2026-05-11 10:14:37 +00:00
HadiSharifi 4a67d9217e update README 2026-05-11 10:09:31 +00:00
2 changed files with 10 additions and 9 deletions
@@ -35,9 +35,9 @@ public class Game {
regularEnemies.add(new Vampire());
locations = new ArrayList<>();
locations.add(new Location("Jungle", regularEnemies));
locations.add(new Location("China", new ArrayList<>(regularEnemies.subList(0, 2))));
locations.add(new Location("Iran", new ArrayList<>(regularEnemies.subList(1, 3))));
locations.add(new Location("Dark Forest", regularEnemies));
locations.add(new Location("Mountain Village", new ArrayList<>(regularEnemies.subList(0, 2))));
locations.add(new Location("Ancient Ruins", new ArrayList<>(regularEnemies.subList(1, 3))));
}
public void start() {
@@ -124,7 +124,7 @@ public class Game {
private Location chooseLocation() {
displayLocations();
System.out.print("1. Jungle\n2. China\n3. Iran\nChoose location: ");
System.out.print("1. Dark Forest\n2. Mountain Village\n3. Ancient Ruins\nChoose location: ");
int choice = sc.nextInt();
Location location = switch (choice) {
case 1 -> locations.get(0);
+6 -5
View File
@@ -14,7 +14,7 @@ Defeat a Goblin, a Skeleton, and a Vampire to collect their keys — only then c
- **3 playable characters** — Assassin, Knight, Wizard — each with unique abilities, weapons, and armor mechanics
- **4 enemies** — Goblin, Skeleton, Vampire, and the Dragon boss
- **3 locations**Jungle, China, Iran — each with different enemy pools
- **3 locations**Dark Forest, Mountain Village, Ancient Ruins — each with different enemy pools
- **Key collection system** — defeat one of each enemy type to unlock the Dragon
- **Rich combat** — light attacks, heavy attacks, defend, heal, special abilities, and flasks
- **Leveling system** — gain XP from victories, level up to increase max HP and MP
@@ -49,7 +49,7 @@ Explore locations, fight enemies, and collect a key from each enemy type (Goblin
### Combat actions
Each turn you choose one of six actions:
Each turn you choose one of seven actions:
| # | Action | Description |
|---|--------|-------------|
@@ -59,6 +59,7 @@ Each turn you choose one of six actions:
| 4 | **Heal** | Costs MP. Restores 10 HP |
| 5 | **Special ability** | Costs MP. Unique per character |
| 6 | **Flask** | Free. Uses a consumable charge |
| 7 | **RepairKit** | Free. Repairs the player armor |
If an action fails due to insufficient MP, you'll be prompted to choose again — your turn is not wasted.
@@ -66,9 +67,9 @@ If an action fails due to insufficient MP, you'll be prompted to choose again
| Location | Enemies |
|----------|---------|
| Jungle | Goblin, Skeleton, Vampire |
| China | Goblin, Skeleton |
| Iran | Skeleton, Vampire |
| Dark Forest | Goblin, Skeleton, Vampire |
| Mountain Village | Goblin, Skeleton |
| Ancient Ruins | Skeleton, Vampire |
The enemy you face is chosen randomly from the location's pool each visit.