gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Loading 16-colour Sprites

#33707 - Celeryface - Fri Jan 07, 2005 3:48 am

Hi there,

I normally load sprites in 256-colour mode using pcx2sprite as the converter tool. I want to use 16-colour sprites, but my sprite isn't showing up properly.

Do I need to use a different converter tool, or load the sprite a different way?

If so, could you lend me some tips?

Thanks! :)

#33710 - ymalik - Fri Jan 07, 2005 5:41 am

I think you pass -16 to the program as well.

#33723 - dagamer34 - Fri Jan 07, 2005 4:11 pm

256-color sprites are 8-bits where as a 16-color sprite is 4-bits. Remember that.
_________________
Little kids and Playstation 2's don't mix. :(

#33742 - Celeryface - Sat Jan 08, 2005 12:55 am

Thanks for the replies. I'll give that stuff a go. :)

#33922 - Celeryface - Tue Jan 11, 2005 4:26 am

ymalik wrote:
I think you pass -16 to the program as well.


I tried the latest version of the pcx2sprite, but using the -16 option doesn't seem to change the output of the data. Is there another version of the program, or another program I should use to output 16-colour sprite data into header files?

Edit: I just noticed that when I dont use the -c option (to output the source file s) the file sizes differ between 256-colour and 16-colour modes. But when I use the -c option, the files are the exact same size. Could 16-colour mode, only be supported when you output binary files using pcx2sprite?