Raylib Live Coding


raylib.live-coding

With this library you can change the game while it is running. You can:
Add new code and reload the game
Inspect and change the environment right from the Listener
Choose whether to close the game or continue if there's an error during execution


See the demo raylib.demo.live-coding for a usual set up. In the demo try to do the following:
Enter demo's vocabulary with IN: raylib.demo.live-coding, load all code with F2 and finally run dev to launch a game.
Wait until the counter reaches 100 and you get a restartable error. Don't choose "Abort", since it will fail to clear up the state.
Run 0 counter set in the Listener and see that the counter is reset to 0. You will get another restartable error when it reaches 100.
In the code, comment the line with draw-text, then come back to Listener and press F2 to refresh all vocabularies. See that the counter disappeared.
Uncomment this line again, click on the game window to focus it and press F5. The counter will appear again.
Run text-color get to put on the stack the object that defines counter's color. Click on the ~Color~ with a mouse, right on the value on the stack. Then choose any slot, for example, r, at the top click on Edit Slot and type some value between 0 and 255, choose Commit. See that the counter color has changed.