Log In  

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

P#49413 2018-02-19 09:52 ( Edited 2018-02-21 01:16)

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.

P#49469 2018-02-20 20:16 ( Edited 2018-02-21 01:16)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 17:41:00 | 0.005s | Q:8