08-29-2023, 09:41 PM
Hi!
I've updated Tilengine binaries at itch.io. In addition to the initial black screen fix, I've implemented TLN_GetPaletteNumColors() following your suggestion. I understand the Nim binding may need this number, but if you passed a color index greater than available to a given palette function, it would fail setting TLN_ERR_IDX_PALETTE global error without crashing.
Cool to know you're going to use Tilengine in your school project! What are you stidying? What kind of game prototype are you planning to build?
I've updated Tilengine binaries at itch.io. In addition to the initial black screen fix, I've implemented TLN_GetPaletteNumColors() following your suggestion. I understand the Nim binding may need this number, but if you passed a color index greater than available to a given palette function, it would fail setting TLN_ERR_IDX_PALETTE global error without crashing.
Cool to know you're going to use Tilengine in your school project! What are you stidying? What kind of game prototype are you planning to build?