When -code-watch flag is passed, reload all the code upon resume. #840
One of the biggest problems I ran into when working on my latest game jam entry was that the only way to make changes to the game state without restarting the whole game was
This patch implements that; when it detects that it is in "watch" mode, it automatically reloads all the game's code when you run
However, I'm not convinced that watch mode is the right way to determine whether to reload or not. For codebases that aren't written specifically to support reloading (that is, they do not preserve state in globals to keep them around between loads) resuming can act more like a full reset, which defeats the purpose of resuming; might as well just do
I am open to other suggestions too; would love to hear your thoughts.
The text was updated successfully, but these errors were encountered: