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
When resuming, you can pass "reload" as the argument, which causes the
cart's code to be reloaded before resuming the game.
This allows for a much smoother iterative development style where you
can pause the game, make changes, and see the effect of those changes
without restarting the game. It does require some special handling in
the cart to support saving state to a global and avoiding that state
being reinitialized if it's already set; for instance:
state = state or {x=25, y=100, shots={}}
This implements the reload method for the fennel script, but it will
need to be implemented for other scripts independently.
0 commit comments