Skip to content

ramirezfernando/turn-based-rpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turn-Based RPG

A 2D, turn-based RPG developed using C++ and SDL2.

turn-based-rpg

Table of Contents

How to Play

Gameplay

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 🪨
Fire Knight Water Priestess Ground Monk

Controls

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 1
      • 2 - Attack 2
      • 3 - Special Attack 1
      • 4 - Special Attack 2
      • Any other key - Return to the main text box
  • 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
  • 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
  • 4 - Saves the game text box (saves the game to a file in the saved-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

Getting Started

Dependencies

The system requirements for running on a macOS are:

Installation

  1. Clone the repo
    git clone https://github.com/ramirezfernando/turn-based-rpg.git
  2. Download Homebrew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)
  3. Download SDL2 libraries
     brew install sdl2
     brew install sdl2_image

Executing program

  1. Compile the program into an executable
make game
  1. Run the executable
./play

Acknowledgments

Special thanks to:

About

2D turn-based RPG. Fight against AI >:D

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published