RPG_GAMES is an attempt to create a game using SFML and C++.
This project is a basic RPG game structure using the SFML library for graphics, window input, and system tasks. The game includes:
- Character control
- Chunk generation and rendering
- Inventory management
- Chat system
- Debug mode
- coding/: Source code of the project
main.cpp
: Main file with the game loop and core functionalityChunk.cpp
,Chunk.hpp
: Definitions and implementations for chunksDebug.cpp
,Debug.hpp
: Debugging toolsDecorationSet.cpp
,DecorationSet.hpp
: Decorations for the gameGlobals.cpp
,Globals.hpp
: Global variables and functionsInventory.cpp
,Inventory.hpp
: Inventory managementMyCamera.cpp
,MyCamera.hpp
: Camera controlmy_resource.cpp
,my_resource.hpp
: Resource managementmy_string.cpp
,my_string.hpp
: String utilitiesmy_time.cpp
,my_time.hpp
: Time utilitiesPerlinNoise.cpp
,PerlinNoise.hpp
: Perlin noise generationPlayer.cpp
,Player.hpp
: Player definition and controlTileSet.cpp
,TileSet.hpp
: Tile management
- resource/: Resources for the game
fonts/
: Fontsimg/
: Images (tiles, sprites, etc.)
- Makefile: Build script for the project
- resource.rc: Resource file for Windows
- README.md: This file
You need to download the 64-bit MinGW (the latest version is called WinLibs MSVCRT 13.1.0 (64-bit)) from this website: https://www.sfml-dev.org/download/sfml/2.6.1/. Then, add it to the path variable above your existing MinGW installation, so that SFML can work properly.
Video: https://youtu.be/jKbWBcVPLWQ?si=V_tRKK-mcBykcHBP
- Make sure you have the necessary dependencies installed, including SFML.
- Clone the repository and navigate to the project directory:
git clone <URL> cd RPG_GAMES
- Run the
make
command to build the project:make
- Run the compiled executable:
./main.exe
all
: Default target. Performs compilation and linking.compile
: Compiles source files.link
: Links object files and resources.clean
: Cleans intermediate files and the executable.run
: Builds and runs the executable.
This project is licensed under the MIT License. See the LICENSE file for more details.