pancelor / p8x8

convert PICO-8 carts into picotron carts (some assembly required)
Other
20 stars 0 forks source link

how to update your converted cart when p8x8 updates #10

Open pancelor opened 4 months ago

pancelor commented 4 months ago

https://www.lexaloffle.com/bbs/?pid=145012#p

write some docs:

pancelor commented 4 months ago

the docs ought to emphasize: this is an odd use case! if you're working on your game long-term, then after converting it via p8x8 you should try to slowly(?) convert it over to "real" picotron code. zep's done a lot of work to make things familiar and mostly work, and I've documented some of the API differences in the polyfill files. The manual exists now too

the native picotron functions (e.g. fetch, userdata, spr) are all available on the p64env table, so you can incrementally introduce picotron code into your pico8 code like this: local filecontents = p64env.fetch("/file/path"). At the end when you're ready to make the switch entirely into picotron:

arrowonionbelly commented 4 months ago

when I used your importer, my sfx workspace was blank and it's not calling sfx. Is this an instance where I'd use fetch or include in main.lua?

pancelor commented 4 months ago

I think you need to replace this file (it's been recently updated)

arrowonionbelly commented 4 months ago

that worked, cheers!