resume
- Resumes execution of an interrupted program.
You execute this system command at the PICO-8 prompt.
The resume
command resumes execution of a program interrupted by the player pressing the Escape key or the program calling stop()
.
This command only works if the program uses the game loop. It does not resume from the place in the code where the program was interrupted. Instead, it starts a new frame by calling _update()
.
The PICO-8 manual describes this command as "flaky." Some carts may have difficulty resuming from an interrupted state because the code that was interrupted may have left global variables in an inconsistent state.
Examples[]
> resume