Beeblerox/HaxeFlixel — pull request #158 by crazysam (2012-11-12 08:14:52+00:00)
Title: Flx layer - optimizations + FlxTilemap functionality

Hey,

I don't know why git is being all weird and putting commits that I didn't make in this pull request... I updated my branch before I committed and pushed my changes.

Anyway, most changes I made are pretty pretty small and insignificant, I added a class for Animated + Rotated pre-baked spritesheets for flash + js, and made an optimization on FlxWeapon.

The only change that is a little bigger, was the making FlxTilemap.loadMap() be able to support being passed in an already prepared Array in addition to a CSV string. I did this because I'm using HaxeFlixelTiled lib (https://github.com/crazysam/HaxeFlixelTiled), and because tiled compresses the data into base64 chunks, it's much faster to load the array of Int straight up instead of loading Array, turning into a CSV string, and then having flixel turn it into an Array again.

Let me know if you think of a better way to handle this.