Texture packer flashpunk atlas class?


(josepho) #1

I was searching on the forums and I only found broken links and performances discussions. I would like to ask if anyone has found or created a fp class that can read xml files from texture packer and import them as spritemaps on a flashpunk project because this would be veeeery usefull !

Thanks!


(Zachary Lewis) #2

I started on one, but never finished. I should probably finish that someday, huh? :sweat:


(josepho) #3

Yes! It will be very usefull!


(Zachary Lewis) #4

Shit! I found it. I thought it was in useflashpunk/FlashPunk, but it was in my fork!

It’s old and is a few commits behind, but it should still work.

zachwlewis/FlashPunk → texture-atlas

I also wrote a test project that uses a simple texture atlas and creates a small world.

zachwlewis/flashpunk-texture-atlas

I believe I stopped because I realized that I would have to make some changes to some of the base classes to get animated sprites working properly. I hope it helps!