A small piece of code to dynamically create a functional cart from another cart and load it.
Why is this useful? Well, obviously this opens the door for somebody to write an alternative code editor for pico-8 carts! (j/k)
function _init() printh("pico-8 cartridge\n\n__lua__\n".. [[ -- your cart code here function _draw() cls(7) print("hello world",60,60) end ]],"dynamic.p8",true) load("dynamic.p8.p8l","back") end
- Generated cart has ".p8l" extension, but it seems to load just fine
- It doesn't work for carts embedded on the BBS or loaded with Splore
[Please log in to post a comment]