RaySchism
RaySchism is a C++20 game engine built on top of raylib.
Dependencies :
- [
raylib
] (https://github.com/raysan5/raylib), cross platform rendering librairy - personnal [
raylib-cpp
] (https://github.com/JacquesHumule/raylib-cpp) fork cpp wrapper for raylib
How to build :
cmake -B . -S . -DCMAKE_BUILD_TYPE=Release
cmake --build .
How to use :
Engine :
#include <rayschism.hpp>
void main()
{
auto engine = rs::Engine(1000, 1000, "R-Type");
auto ship = engine.AddSprite({500, 500},
{0, 0, 32, 32},
{"image.png"},
{0, 0, 0});
while (!WindowShouldClose())
{
engine.UpdatePositions();
engine.Display();
}
}