This project is a 2D Role-Playing Game (RPG) inspired by the nostalgic Super Mario style. It is developed in C++ using the SFML library(v2.5.1)
Get ready for an exciting adventure!
- Enemies will come your way, so gear up with your bow and shoot arrows to take them down.
- If the enemies manage to injure you, eat bananas or apples to regain your health.
- Be mindful of your arrows; they can run out! Collect coins throughout the game to increase your score.
The game features:
- Various visuals and sound effects
- Background music
- Multiple collectible items (coins, health boosts, etc.)
include/config.h
: Contains constants, variables, and configurations for the game, linked to the main file (main.cpp
).assets/
: Includes all the assets required for the game, such as:- Images and sprites
- Sound effects and music
- Fonts for text display
CMakeLists.txt
: Links necessary libraries and compilers for building the project.
- Clone the repository:
git clone https://github.com/RezaGooner/2D-RPG-Game-SFML.git cd 2D-RPG-Game-SFML
Ensure you have SFML installed on your system. Download it from SFML's official website. Build the project using CMake: bash Copy Edit mkdir build cd build cmake .. make Run the game: bash Copy Edit ./2D-RPG-Game Screenshots Here are some screenshots from the game:
Features Dynamic Gameplay: Combat enemies, collect coins, and manage resources. Audio-Visual Effects: Engaging visuals, sound effects, and background music. Item System: Collect health items and arrows to survive. Configurable Settings: Easily modify game settings via config.h.