09.17.05

Transparency & Bitmasks

Posted in GID 15, Programming at 10:37 pm by Nick

You can now specify a color for a sprite that you wish to be transparent, rather then just the normal 255/0/255 I usually use (its the default :P ).

Along with this is the calc_bitmask function which loops through a sprites bitmap and determines which bits need to be set. It seems to work alright.

I created a small test app to test the new STARRY background scripting stuff, the saucer loaded from file, and collisions between them using the new function (they were all squares before, so I just used bitmask_fill).

Back to programming!

Leave a Comment