Log In  

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

P#69527 2019-10-31 20:11

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.

P#69531 2019-10-31 21:11 ( Edited 2019-10-31 21:12)

Thanks for the heads up @dw817
Hopefully this get’s fixed. I still think it’s nice to have a repo it.
Greetings, Z9

P#69532 2019-10-31 21:22

Cool idea.

I always have a bunch of little helper functions ("lerp" etc) that get duplicated across different projects.

P#69549 2019-11-01 06:32

@Mot feel free to add them, if you like.
Cheers, Z9

P#69554 2019-11-01 14:29

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 ...

P#69609 2019-11-03 03:48 ( Edited 2019-11-03 03:51)

Thank you @dw817

P#69613 2019-11-03 10:59

Would you care to join forces? https://github.com/sparr/pico8lib

P#72819 2020-02-06 18:35

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

P#72821 2020-02-06 19:08 ( Edited 2020-02-06 19:17)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 22:22:41 | 0.024s | Q:23