Skip to content

RezaGooner/2D-RPG-Game-SFML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D RPG Game (SFML)

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)

About the Game

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.)

Project Structure

Key Files and Directories

  • 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.

Button guide

Move to right

g14209

Move to left

g14134

Jump

g14253

Shoot

g14245

Installation and Setup

  1. 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:

P1 P2 P3 P4 P5

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.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published