The pico-8 manual mentions the following argument to the "pico8" program:
-p param_str pass a parameter string to the specified cartridge
but I can't find any mention of how to access that parameter. I was thinking it might be passed as an optional argument to _init(), but that doesn't appear to be the case; and PICO-8 doesn't expose lua's standard arg array.
How can I access that string?
I'm running on Mac OS btw, invoking the binary directly with:
~/Applications/PICO-8.app/Contents/MacOS/pico8 -p foo -run path-to-cart.p8
This seems to make the keyboard keys unresponsive (except a few, like return), not sure why...
[Please log in to post a comment]