Log In  

Alright so I have this example image that I need help learning how to compress and on how to compress things in the future

P#67494 2019-09-10 19:31 ( Edited 2019-09-10 19:54)

:: dw817

This is indeed 128x128. In the future, Scrub, you can highlight the image in PICO-8 and select CTRL-C.

Then CTRL-V direct in your message here.

Gimme a sec. Want to make this code as short and simple as I can ... here ya go.

Cart #wayofemigu-0 | 2019-09-10 | Code ▽ | Embed ▽ | No License

. . .

Way Of The Emigu ? A new alien race perhaps ?

BTW, to list all files in a directory, use "DIR *" It will list not only .P8 files but anything else you have there.


P#67497 2019-09-10 21:04 ( Edited 2019-09-10 21:17)

So how does it work though? Thats what I'm really curious about

P#67503 2019-09-10 21:51
:: dw817

It's really straight-forward. Check the source-code.

In pico-8 type: LOAD #WAYOFEMIGU

It's merely reading the sprite memory data as bytes and stuffing it into a string as 2-character hex.

Then it use printh() command to save to clipboard.

To retrieve it, it reverses the process.

Nothing more mystical than that. :)

P#67504 2019-09-10 21:54

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-02-23 14:02 | 0.021s | 4194k | Q:33