As a fun side-project, I created pico-build. With it, you can build multiple lua files into a single PICO-8 cart. Here's a demo gif showing the usage:
The main things that pico-build does differently from the other tools that I've seen are:
- Formats the separate lua files as tabs within the PICO-8 editor
- Launch/reload cart in PICO-8 and log printh() output in the terminal
I'm using it now for my own projects. If you try it out, let me know how it goes!
Honestly if #include was available when I started working on this, I probably would not have made it because it covers most use cases. This approach has a few advantages though:
- Your code gets built into the p8 file as separate tabs, so your final cart will have the code organized instead of all concatenated into one long chunk.
- Auto-reloading the cart in PICO-8 is really nice for rapidly tweaking things.
[Please log in to post a comment]