I've got an interesting bug. It only happens in PICO-8 itself. The bug can be reproduced with the following small program and reproduction steps:
function _init() menuitem( 1, "switch weapon", function() --if (getthunder()==1) hwep=(hwep+1)%2 end) end function _update() end function _draw() end |
Steps to reproduce:
- Run the program.
- Quit to console with ESC.
- Type:
x=10
Any variable will cause the bug.
- Type:
resume
-
Press enter to bring up in game menu. Choose "switch weapon"
- Observe crash. See image.
I reproduced this bug with a tiny cartridge, see the code in the OP.
[Please log in to post a comment]