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

P#60202 2018-12-21 13:46

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

P#60215 2018-12-21 16:47
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.

P#60221 2018-12-21 21:36

Very cool!

P#60230 2018-12-22 05:18

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

P#60254 2018-12-22 17:38

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

P#60374 2018-12-26 11:57

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-19 02:12:16 | 0.011s | Q:23