You can support the development on the Github Sponsors page.


Tools > COMPRESSION TOOL FOR 2-COLOR SPRITES


Compression and drawing tool for 2-color sprites with functionality of spr() and easy color swaping
made by Spreit
uploaded by Spreiting
added:
updated:
download cartridge
- CLICK TO PLAY -

0


----- DESCRIPTION -----
With this tool you can store x8 count of
2 color sprites


--- USE UI TO COMPRESS SPRITES ---

or
sprcomp({{sprnum}},sprnumcomp,{transparent})

1.sprnum - array of sprites (0-511) which will be compressed

{{first row of sprites},{second row}...}

2.sprnumcomp - number of the sprite (0-2047) in which compressed data will be stored

3.transparent - array of colors which will be considered as secondary and won`t be counted while compressing (0 is default)


-- DRAWING SPRITES WITH SPRBIT --

sprbit({{sprnum}},x,y,{color1,color2},scale,flip,rotate)

1.sprnum - an array of sprites (0-2047)

{{first row of sprites},{second row}...}

{{1,1,1},{nil},{3,nil,3}}
=
111

3 3

3.{color1(main),color2(secondary)}
- the colors of the sprite,
if equals to -1 or to nil,
the color will be transparent

----------------------------------------

UPDATE v.1.2
-GREATLY Improved drawing speed


Post comment