Skip to content
YutsunaPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

R-Engine
A C++23 Game Engine

A data-oriented C++23 game engine built with Raylib, featuring a modern ECS architecture and Lua scripting.

About The Project

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.

Key Features

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

Documentation

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

Getting Started

Prerequisites

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

Installation

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/

Build and Run

The engine provides simple shell and PowerShell scripts for building the examples.

Linux / macOS

# Build the examples in Release mode
./build.sh

# Build in Debug mode
./build.sh -d

# Run an example
./r-engine__bouncing_balls

Windows

# Build the examples in Release mode
.\build.ps1

# Build in Debug mode
.\build.ps1 -d

# Run an example
.\r-engine__bouncing_balls.exe

Manual Build (CMake)

You can also build the project manually using CMake and Ninja:

mkdir build && cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release
ninja
cd ..

Post-Processing Showcase

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)

Development

Interested in contributing? We welcome pull requests and issues.

TODO: Add CODE_OF_CONDUCT.md & CONTRIBUTING.md

Tested On

  • Windows
  • macOS
  • Debian
  • Arch Linux
  • Ubuntu
  • Fedora

License

TODO (This project is licensed under the GNU GPLv3 License)

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages