Setup raylib for Linux (at least the prerequisites)
Setup raylib for HTML5 (emscriptem, again at least the prerequisites)
Once you have all the prerequisites you can run:
chmod +x setup.sh & ./setup.sh(This command will automatically build raylib for Linux and HTML5.)
make webTo play the native game you can do:
cd dist
python3 -m http.serverThen open a browser and you should see the game on the server port.
make nativecd dist
./ludum_dare_55To enhance your development workflow, you can use the make watch command which enables automatic recompilation of your project when source files change. This feature requires inotify-tools to be installed on your system. You can install it with the following command:
sudo apt-get install inotify-toolsTo start automatic recompilation, run:
make watchThis will monitor changes in the source directory and rebuild the web version of your game whenever a file is modified.
For a WYSIWYG-like experience, you can pair make watch with a live server. While make watch rebuilds the game, running a local server allows you to see changes reflected immediately in your browser.