-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider adding Hot-Reloading #720
Comments
Some things I learned while playing with this thing:
|
I believe the best UX would be attained by replacing |
I put together a POC where mill drives the reloading all by itself and it's less glitchy than using The catch is that it does this by pushing data to the Electron-process through stdin, which as far as I understand does not work for Windows. Now looking for a platform-independent method of doing IPC. |
@megri has made an interesting gist showing how you might use the
electron-reloader
module with Indigo.https://gist.github.com/megri/9b82e3fc0cbf9b87f1c36ef477129300
Two things:
IndigoOptions
to enabled / disable hot reloading.SubSystem
that works in a similar way to Tyrian's HotReloading functionality, in order to load / restore game state to local storage. That way if the browser or electron reloader kicked in, the game would carry on where you left off.The text was updated successfully, but these errors were encountered: