Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arezyhs/cplusplus-final-project-rpg-game
This is our simple project for fundamental of programming with C++. This is a group based project where each group must create and demo their own project.
https://github.com/arezyhs/cplusplus-final-project-rpg-game
cplusplus text-based-game
Last synced: about 1 month ago
JSON representation
This is our simple project for fundamental of programming with C++. This is a group based project where each group must create and demo their own project.
- Host: GitHub
- URL: https://github.com/arezyhs/cplusplus-final-project-rpg-game
- Owner: arezyhs
- Created: 2023-12-10T15:56:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-23T11:25:19.000Z (about 1 year ago)
- Last Synced: 2023-12-24T12:04:39.804Z (about 1 year ago)
- Topics: cplusplus, text-based-game
- Language: C++
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Adventure RPG Game
Overview
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.
Contributors
- arezyh.s https://github.com/arezyhs
- shylniac https://github.com/shylniac
Features
-
Player Class: The game includes aPlayer
class with attributes such as name, level, experience, health, attack, coins, and defense. -
Enemy Classes: Various enemy classes, such asGoblinEnemy
,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.
How to Play
- 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.
Character Classes
-
Warrior:
- Health: 100
- Attack: 20
- Defense: 5
-
Archer:
- Health: 75
- Attack: 20
- Defense: 20
-
Knight:
- Health: 150
- Attack: 25
- Defense: 10
Cheat Code (for testing)
Press 9
when choosing a character class to activate cheat mode, setting your character to level 10 with enhanced stats.
Dependencies
- C++ Standard Library
How to Compile and Run
- Make sure you have a C++ compiler installed.
- Compile the source code.
g++ -o adventure_rpg adventure_rpg.cpp
- Run the executable.
./adventure_rpg
Acknowledgments
Thank you for playing the Adventure RPG game! Have fun exploring the fantasy world and overcoming challenges!