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.