A simple text-based RPG game in C++ where you explore a mysterious castle, fight Hack Clubbers, and collect coins to survive the adventure.
You are a brave adventurer who dares to enter the Castle of Hackers.
Inside, you’ll encounter Hack Clubbers guardians of the castle who test your courage.
- ⚔️ Fight enemies to earn coins (but risk losing health).
- 🏃 Run away to save health (but earn nothing).
Survive all castle rooms to win the game!
- Player System: Name, health, and coins tracking.
- Enemies (Hack Clubbers): Random attack power & random coin drops.ops.
- Choices: Fight or run in every room.
- Randomization: Each playthrough is unique.
- Game Endings: Win by surviving or lose if your health hits zero.
g++ main.cpp -o main
===== CASTLE ADVENTURE RPG =====
|>>> |>>>
| |
_ __|_ _ _ _|_ _
|;|_|;|_|;| |;|_|;|_|;|
\\. . / \\. . /
\\: . / \\: . /
||: | ||: |
||:. | ||:. |
||: .| ||: .|
||: | CASTLE ||: |
||: , | ||: , |
__||_ | _||_ |
__ /_____\ | __ __ /____\ | __
/ \/ \ | / \ /\ / \/ \ | / \
/ //\ \| / /\ \/ \/ /\ \|/ /\ \
/__/ \________/__/ \______ / \_________/ \__\
| _ __ _ | _ _ _ __ _ _ |
| | | / \ | || | | | | | | / \ | | | ||
| |_| | () | | || |_| | |_| | | () | | |_| ||
| \__/ _|_|| \____/ \__/ _| ||
|_______________________________________________|
Coins are an important part of the game.
Players can earn coins and spend them in the shop for survival and upgrades.
- Winning battles against enemies
- Discovering treasure rooms
- Receiving random gifts from NPCs
- Exploring special rooms that grant coin rewards
Coins can be spent in the Shop:
- Buy Potions to restore health during fights
- Pay for Healing to regain HP instantly
- Upgrade your Sword to deal more damage
- Save coins early on for healing and potions.
- Investing in a Sword Upgrade before the final boss increases your chance of victory.
A simple text-based RPG made with C++.
You explore a mysterious castle, collect coins, fight enemies, and prepare for the final boss battle..
When you defeat the final boss and survive the castle, the game displays a winning message like this: