RPG
Overview
This project is an RPG game built using the raylib library. The game uses raylib for rendering, input handling, and other graphical features.
Prerequisites
Before building and running the game, ensure you have the following installed on your system:
- raylib: The game relies on raylib for graphical rendering. You can install it via Homebrew or other package managers. For Homebrew:
brew install raylib - Make: A build automation tool to compile the game.
- C Compiler: Ensure a C compiler like
gccorclangis installed on your system.
Configuration
Update the Makefile to reflect your raylib installation paths. Below is an example configuration:
INCLUDE_PATH = -I/opt/homebrew/include
LIB_PATH = -L/opt/homebrew/Cellar/raylib/5.0/lib
LDFLAGS = -lraylib -framework OpenGL -framework Cocoa -framework IOKit
Replace the paths if raylib is installed in a different location on your system.
Building the Game
- Build the game:
make
Running the Game
- Run the game:
make run
Troubleshooting
- Ensure the paths in the
Makefilepoint to the correct raylib installation directories. - If raylib is not installed, install it using your package manager.
- For macOS users, ensure
-framework OpenGL,-framework Cocoa, and-framework IOKitare included in theLDFLAGS.
License
This project is distributed under the MIT License. See the LICENSE file for details.
Contributions
Contributions are welcome! Feel free to fork the repository and submit pull requests.