zx-tools icon indicating copy to clipboard operation
zx-tools copied to clipboard

4 bit sprite import - palette issues when importing > 1 sprite

Open ljg701 opened this issue 5 months ago • 0 comments

Hi,

I'm trying to import a range of 4 bit sprites, only 16 colours are in use.

The import routine doesn't seem to identify that the sprites are using the same 16 colours between them, and wants to create a new palette of 16 colours for each sprite.

E.g. Sprite 1 uses colours 1,2,3,4,5 <- system tries to create a new palette Sprite 2 uses colours 6,7,8,9,10 <- system tries to create a new palette Sprite 3 uses colours 11,12,13,14 <- new palette etc

I think the import needs to scan the entire range of sprites being imported, and could then conclude that all the sprites could fit in the same palette.

ljg701 avatar Sep 24 '24 16:09 ljg701