This project is a simple text-based RPG game written in C++. Players navigate through a fantasy world, encountering enemies and making choices to progress in the game.
- arezyh.s https://github.com/arezyhs
- shylniac https://github.com/shylniac
- Player Class: The game includes a
Player
class with attributes such as name, level, experience, health, attack, coins, and defense. - Enemy Classes: Various enemy classes, such as
GoblinEnemy
,WizardEnemy
,DarkKnightEnemy
,GiantEnemy
, andFinalBossEnemy
, each with unique characteristics. - Combat System: Players engage in turn-based combat with enemies, choosing to attack or run away. Combat outcomes impact player stats and progression.
- Exploration: Players can explore the game world, encountering random events like finding coins or facing enemies. Level 10 introduces a final boss encounter.
- Healing: Players can choose to heal by spending coins, replenishing health during their journey.
- Save and Load: The game supports saving and loading player progress using a text file (
player_progress.txt
). - Class Selection: Players can choose their character class at the beginning, affecting starting stats.
- Enter your character's name.
- Choose a character class: Warrior, Archer, or Knight.
- Embark on an adventure, exploring the world, battling enemies, and leveling up.
- Use the options to explore, heal, save, load, or exit the game.
- Warrior:
- Health: 100
- Attack: 20
- Defense: 5
- Archer:
- Health: 75
- Attack: 20
- Defense: 20
- Knight:
- Health: 150
- Attack: 25
- Defense: 10
Press 9
when choosing a character class to activate cheat mode, setting your character to level 10 with enhanced stats.
- C++ Standard Library
- Make sure you have a C++ compiler installed.
- Compile the source code.
g++ -o adventure_rpg adventure_rpg.cpp
- Run the executable.
./adventure_rpg
Thank you for playing the Adventure RPG game! Have fun exploring the fantasy world and overcoming challenges!