Since PICO-8 has #include to, well, include files, I thought of starting a git repo to provide handy functions in bundle to include from.
The public repo can be found at https://gitlab.com/zothynine/pico8-code-library
For now, there's only a text function, but feel free to particibate ;-)
Cheers, Z9
Errp, @zothynine, don't get too comfortable with Pico-8's current INCLUDE (0.1.12c). It has problems.
-- simple test to show flawed -- include -- make text file called, -- "inc.txt" -- contents print"hello" -- save it. -- now run this code. #include inc.txt -- runs correctly. -- now export to bin -- run the bin, crashes. -- export to bbs -- save "@clip" -- paste it. -- run it, crashes. |
Hopefuly @zep will fix this with next release.
Thanks for the heads up @dw817
Hopefully this get’s fixed. I still think it’s nice to have a repo it.
Greetings, Z9
Cool idea.
I always have a bunch of little helper functions ("lerp" etc) that get duplicated across different projects.
Here's a star for starting a repository for useful Pico-8 code, @zothynine.
For those of you out there who balk and say, "Hey, I started a code respository" yeah, but for Python or LUA, not specifically Pico-8 code that runs right out of the box.
O h Y e a h . . . there is that. :)
If #include ever gets repaired next version I'll certainly be more than happy to add my routines to your libs, mostly string-based. Prolly up to 50 or more now ...
Absolutely! Although, my „format“ is a little different than yours. I use a single LUA file per function(ality) to take advantage of the #include feature.
I also only have two functions in my library, so far ;-)
Let me know how you would like to go on or what you want me to do.
Greetings from Vienna,
Mario
[Please log in to post a comment]