Extending FlashPunk

While making my next game, I’ve extended the functionality of FlashPunk a little bit. This requires modification to the core framework to work, because some variables are private and not protected. Either way, thought someone might find it useful.

Rotated Spritemap – An animated rotated spritemap, allows for animations to be pre rotated, and caches the bitmap for memory conservation.

Autotiled Backdrop – Takes a spritemap and randomly tiles the backdrop with it’s sprites.

These are both raw, and fairly untested, so use at your own risk. They are helpful though, and I think anyone wanting to use them could get them to work following the instructions. I will continue to update these and hopefully they will make it into a future version of FlashPunk