Log In  

Cart #17433 | 2015-12-03 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3


I wrote a little utility to export PNG files to pico8 cartridge map files. I've got plans to automatically eliminate duplicate tiles and allow arbitrarily sized images, but in the meantime, here is my first proof-of-concept to show that I've got the cartridge format correct, and the basic idea works, using the good old red-eyed tree frog seen in all kinds of image processing demos (the pico8 palette is not too kind to it).

Not that this is not a game, it's an automatically generated cartridge. The real magic is in the generator (which I hope to publish when I'm happy with it).

P#17434 2015-12-03 05:34 ( Edited 2015-12-03 18:33)

Looks good!

There are some other tools already, some in Python, some in C#. You might want to have a look at the source codes...
https://www.lexaloffle.com/bbs/?tid=2387
https://www.lexaloffle.com/bbs/?tid=2328

I'm still waiting for a complete Pico-8 Studio solution (ultimate preferably) :)

P#17436 2015-12-03 08:40 ( Edited 2015-12-03 13:40)

Didn't Zep say they were workin' on it for version 1.4.0?¿?

P#17441 2015-12-03 10:11 ( Edited 2015-12-03 15:11)

> There are some other tools already, some in Python, some in C#.
> You might want to have a look at the source codes...

Not exactly what I have in mind here, but interesting. The cartridge format is pretty easy to understand from mere observation, but my ultimate goal is to make very large maps, by squeezing as much data into a cartridge as I can. Time to get creative.

P#17446 2015-12-03 11:40 ( Edited 2015-12-03 16:40)

My own prior art on generated carts and compression, in case it's useful to you:

https://www.lexaloffle.com/bbs/?tid=2691
https://www.lexaloffle.com/bbs/?tid=2709
https://www.lexaloffle.com/bbs/?tid=2776

The text demo uses LZW and a single corpus-wide dictionary to compress multiple short strings. This could be adapted easily to other kinds of data. I mostly used strings to pair it with source code processing, to demonstrate the automated extraction and compression of string literals in Lua code. Reusing the compression code to extract maps from multiple "source carts" to make a single "compiled cart" wouldn't be any more complex, and might even be simpler. :)

P#17456 2015-12-03 13:33 ( Edited 2015-12-03 18:33)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-16 18:47:50 | 0.010s | Q:20