Hello,
i'm working on a new pico-8 project and with time ... my code was long and difficult to navigate in.
As the p8 file is just a textfile ... i have the idea to extract the code as lua file ... and allow to compile a lot of lua file in my p8 file.
I have just create a simple bash file that to this ... :
if existing project : -> extract code to main.lua
if new project : -> create p8file and a default main.lua file
Now can create a lot of lua file ... and everything will be compile in your gamefile when you launch the command
As you can see ... my new project is now more readable :)

It's fresh new project ( today ) , and only tested on OSX/Linux ...
https://github.com/Nakato53/p8compile



Nice work!
You might also enjoy picotool's "p8tool build" command: https://github.com/dansanderson/picotool You can either do your concat step and hoist it into a cart, or you can just use p8tool build directly and use require() statements in your code, which have Lua-like behavior.
[Please log in to post a comment]