A data-oriented C++23 game engine built with Raylib, featuring a modern ECS architecture and Lua scripting.
R-Engine is a lightweight, cross-platform game engine designed for performance and flexibility. It is built upon a modern, data-oriented Entity Component System (ECS) architecture inspired by Bevy. This approach promotes clean code, performance, and modularity.
The engine uses Raylib for low-level graphics and hardware abstraction, and integrates a Lua scripting interface, allowing for rapid prototyping and flexible game logic.
- Modern C++23: Leverages the latest C++ features for performance and clean code.
- Data-Oriented ECS: A high-performance Entity Component System for modular and scalable game architecture.
- Plugin-Based: Extend the engine with custom functionality through a simple plugin interface.
- Cross-Platform: Supports Windows, macOS, and various Linux distributions.
- Raylib Backend: Built on the simple and powerful Raylib library.
- Lua Scripting: Integrated Lua support for flexible game logic.
- Post-Processing: Comes with a wide array of built-in post-processing shaders.
- Simple Build System: Uses CMake and provides easy-to-use build scripts for all platforms.
The engine is documented using Docusaurus. The documentation covers the core concepts of the ECS, advanced features, and provides a full API reference.
You can build and view the documentation locally:
cd docs/
npm install
npm start- A C++23 compatible compiler (GCC, Clang, or MSVC)
- CMake (>= 3.16)
- Ninja (optional, but recommended for faster builds)
A Windows installer is provided in scripts/Windows to help set up the required dependencies.
Clone the repository and its submodules (Raylib and Lua) recursively:
git clone --recurse-submodules -j$(nproc) [email protected]:Leorevoir/R-Engine.git
cd R-Engine/The engine provides simple shell and PowerShell scripts for building the examples.
# Build the examples in Release mode
./build.sh
# Build in Debug mode
./build.sh -d
# Run an example
./r-engine__bouncing_balls# Build the examples in Release mode
.\build.ps1
# Build in Debug mode
.\build.ps1 -d
# Run an example
.\r-engine__bouncing_balls.exeYou can also build the project manually using CMake and Ninja:
mkdir build && cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release
ninja
cd ..R-Engine includes a variety of built-in post-processing shaders ready to use:
- Grayscale
- Posterization
- Dream Vision
- Pixelizer
- Cross Hatching
- Cross Stitching
- Predator View
- Scanlines
- Fisheye
- Sobel
- Bloom
- Blur
- Contrast
- Protanopia, Deuteranopia, Tritanopia (Color blindness simulation)
Interested in contributing? We welcome pull requests and issues.
TODO: Add
CODE_OF_CONDUCT.md&CONTRIBUTING.md
- Windows
- macOS
- Debian
- Arch Linux
- Ubuntu
- Fedora
TODO (This project is licensed under the GNU GPLv3 License)
