Hi!
I'm just starting out with pico8. can I somehow split my code into several files? So that I can easily re-use certain functions, or libraries like https://github.com/clowerweb/Lib-Pico8/
How would I import them (putting them into lib/file.lua
then import "lib/file.lua"
does not seem to work – it doesn't expose the defined functions.
P#42639 2017-07-20 06:28 ( Edited 2017-07-20 11:31)
Edit the file from the outside, save it and Control-R your cart from Pico8. Pico will see the file has changed, reload it and run it.
Some people (including me) have probably more (or less) working solutions around file assembling as you describe, but AFAIK nobody has published its solution. Mine is not completely working and is not yet ready for prime time ;)
P#42644 2017-07-20 07:31 ( Edited 2017-07-20 11:31)
[Please log in to post a comment]