A template repo for raylib-rs projects.
You will need raylib installed:
brew install raylib
And you will need Emscripten installed for web builds:
brew install emscripten
Or...
brew install just
just setupImportant
Cross-compilation is achieved using cross alongside custom Docker images. You will need Docker installed and running in order to cross-compile.
- Clone this repository
git clone --depth=1 https://github.com/snailcreature/raylib_template.git <your project name>
- Point it at your remote repository1
git remote set-url origin <your repo url>
- Update
Cargo.tomlwith your project details - Update
project_identifierin thejustfile(unless you are me) - Ensure
justis installed and run the setup commandjust setup
Tip
Run
PROJ=<your_project_name>then
git clone --depth=1 https://github.com/snailcreature/raylib_template.git $PROJ
cd ./$PROJ
just setupThis template includes a handful of data structures and programming patterns implemented for ease of use:
- Ecstasy - an ECS implementation (see also: Ecstatic)
- Cacao - a very basic events system with observers and commands
- Quartermaster - an asset manager with automatic memory management
- Ringo - a pseudorandom number generator
- rlimgui - DearIMGUI compatibility layer
- platform_compat - Compatibility layer to ensure asset paths work across platforms
Check the docs folder for documentation on the various elements of this project
No AI was knowingly used in the research or creation of this project.
Footnotes
-
Answer to "How to properly fork a local git repository?";
CodeWizard- https://stackoverflow.com/a/58113672 ↩