A 2D, turn-based RPG developed using C++ and SDL2.
Players can choose between three different characters to fight against each other. The game ends when a player has reached 0 health. Players can choose between:
Fire Knight 🔥 | Water Priestess 🌊 | Ground Monk 🪨 |
---|---|---|
![]() |
![]() |
![]() |
The game is played using the keyboard. The controls vary depending on the text box that is currently in view.
The main text box contains the following controls:
1
- View attack text bok- The attack text box contains the following controls:
1
- Attack 12
- Attack 23
- Special Attack 14
- Special Attack 2- Any other key - Return to the main text box
- The attack text box contains the following controls:
2
- View stats text box- The stats text box contains the following controls:
1
- View player stats (displayed on the terminal)- Any other key - Return to the main text box
- The stats text box contains the following controls:
3
- View run text box- The run text box contains the following controls:
1
- Run (ends the game)2
- Stay- Any other key - Return to the main text box
- The run text box contains the following controls:
4
- Saves the game text box (saves the game to a file in thesaved-data
folder)- The save game text box contains the following controls:
1
- Return to main text box- Any other key - Return to the main text box
- The save game text box contains the following controls:
The system requirements for running on a macOS are:
- Clone the repo
git clone https://github.com/ramirezfernando/turn-based-rpg.git
- Download Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)
- Download SDL2 libraries
brew install sdl2 brew install sdl2_image
- Compile the program into an executable
make game
- Run the executable
./play
Special thanks to: