johannes-fetz / joengine

Jo Engine is an open source 2D and 3D game engine for the Sega Saturn written in C under MIT license
http://jo-engine.org/
MIT License
205 stars 32 forks source link

8bit Demo Questions #57

Closed slinga-homebrew closed 3 years ago

slinga-homebrew commented 3 years ago

Hi Johannes,

I'm trying to understand the 8bit TGA demo. What tool did you use to create the TGA? I am trying with GIMP and it's creating 256 color indexes. Is it possible to use 8bpp and have transparencies?

66 // Load a 8 bits ▲ 255 colors (MAX) NOT 256 or it will glitch! ▲ TGA 67 // Instead of JO_COLOR_Transparent, you can pass an index on your palette 68 jo_sprite_add_tga("TEX", "SON8.TGA", JO_COLOR_Transparent);

johannes-fetz commented 3 years ago

Hi,

I'm using IrfanView :

how

And yes, you can select the index int the palette that should be transparent (0 to 255). Just replace JO_COLOR_Transparent by a number like 42 and see

slinga-homebrew commented 3 years ago

Thanks, i will try Irfan Viewer.