https://github.com/konsumer/raylib-live
Template for live-reloading a C raylib game
https://github.com/konsumer/raylib-live
c raylib wasm web
Last synced: 12 months ago
JSON representation
Template for live-reloading a C raylib game
- Host: GitHub
- URL: https://github.com/konsumer/raylib-live
- Owner: konsumer
- Created: 2024-06-13T18:04:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-23T02:36:20.000Z (over 1 year ago)
- Last Synced: 2025-06-25T20:12:45.555Z (12 months ago)
- Topics: c, raylib, wasm, web
- Language: CMake
- Homepage: https://konsumer.js.org/raylib-live/
- Size: 320 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The purpose of this is to have a live-reloading C-based raylib setup, so you can work on your scene and see changes right away. You will need emscripten/ninja/cmake/nodejs installed, or docker. You can find help install all this in [WINDOWS](setup/WINDOWS.md), [LINUX](setup/LINUX.md) or [MAC](setup/MAC.md).
It also has Github CI setup to auto-publish a demo site for quick-sharing of your project. [Here](https://konsumer.js.org/raylib-live) is an example.
```
# setup tools
npm i
# run the watching web-server, build on changes
npm start
# run the build/server in docker (less host-tooling needed)
npm run start:docker
# make a native game, run with ./build/my_raylib_game
npm run build:native
# compile web-version
npm run build:web
```
Put any files in `src/assets` and access them in your code with that path (like `src/assets/image.png`) and it will work in native or wasm -build.