Log In  

I've made an algorithm that allows you to store 4 1-bit sprites in the space of a pico-8 sprite.
It might not be perfect but it works, tell me if you encounter any problems.
It could be a little hard to use so there's some help on the bottom of this page.

Cart #onebitspritesalgorithm-1 | 2022-06-22 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

Documentation:
Use 4x more sprite memory if your sprites are 1-bit
16 colors / 2 colors
1 sprite / 4 sprites
256 sprites / 1024 sprites
To draw your sprites, you'll have to use specific colors
Each color marks different sprites from 1-4, some of them mark more at once:
Pixel color in spritesheet/which sprites will be marked by color in that spot
0/none
1/1
2/2
3/3
4/4
5/1,2
6/1,3
7/1,4
8/2,3
9/2,4
10/3,4
11/2,3,4
12/1,3,4
13/1,2,4
14/1,2,3
15/1,2,3,4

P#109460 2022-03-31 09:17 ( Edited 2022-06-22 07:27)


[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2022-06-26 01:22:25 | 0.007s | Q:11