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 web
To play the native game you can do:
cd dist
python3 -m http.server
Then open a browser and you should see the game on the server port.
make native
cd dist
./ludum_dare_55
To 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-tools
To start automatic recompilation, run:
make watch
This 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.