You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package.loaded.MODULE = nil enables MODULE to be required a second time, which allows us to reload files on demand.
combine this with putting xpcall inside each bind-love hook, plus an "error mode" as technomancy has implemented -- this would allow us to reload a broken file as well.
This could be taken even further, by adding a "debug mode" where we can break out of the current scene and interactively choose which files to reload when pressing F5 (thru inspecting the package.loaded table)
The watch-reload approach doesn't enable us to preserve state between reloads. In theory, this does.
The text was updated successfully, but these errors were encountered:
Sounds like it's already been proven in existing fennel games... maybe we give it a shot, but time box it to about 2 hours of effort. After the game jam we could explore it more thoroughly
package.loaded.MODULE = nil
enables MODULE to be required a second time, which allows us to reload files on demand.combine this with putting
xpcall
inside eachbind-love
hook, plus an "error mode" as technomancy has implemented -- this would allow us to reload a broken file as well.This could be taken even further, by adding a "debug mode" where we can break out of the current scene and interactively choose which files to reload when pressing F5 (thru inspecting the package.loaded table)
The watch-reload approach doesn't enable us to preserve state between reloads. In theory, this does.
The text was updated successfully, but these errors were encountered: