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#] | Code | 2019-09-10 | No License | Embed

. . .

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.

HOPE THIS HELPS !

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]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-09-22 09:21 | 0.017s | 4194k | Q:27