Log In  


Cart #dancer-0 | 2018-12-21 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
10

106 frames of animation, compressed and embedded in the cart (half in the code, half in the gfx segment).

10


WOW! Very nice. What kind of stuff is your compressor doing?


2

It’s simply gzip / deflate, with some minor tweaks to the format so that the decompression code uses as little cart space as possible.


Very cool!


Hi Samhocevar,

I’m floored by the number of frames you got in there!

Could you share you gZip/deflate encoding tool or code?

I’ve been searching for a good tutorial/guidance on writing a zip encoder that works with different bit lengths. My hacky encoders have all been written in truly attrocious python.

https://www.lexaloffle.com/bbs/?tid=3124
https://www.lexaloffle.com/bbs/?tid=32583
https://www.lexaloffle.com/bbs/?tid=30013

Thanks,
Electricgryphon


Sure, the compressor is part of z8tool, a command line utility available here: https://github.com/samhocevar/zepto8

I have also set up a web service for people who maybe can’t compile or run it: http://sam.hocevar.net/projects/z8/

Here is an example with the “high color” option:

Cart #lego-0 | 2018-12-26 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA



[Please log in to post a comment]