HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.98k stars 439 forks source link

New Asset Management #20

Closed maggo closed 12 years ago

maggo commented 12 years ago

How about implementing an easier asset management? There should be an easier way than creating static vars and classes...

Beeblerox commented 12 years ago

Maybe I'll try this. but it is not in the first-priority-list

maggo commented 12 years ago

Tried something on my fork, using Bitmap instead instead of Class but didn't work as expected for some odd reason. Will look into this later. Thanks for your work anyways :)

Beeblerox commented 12 years ago

It didn't work because flixel compares class names of bitmap before add it to the game's image cache. It saves the memory this way.

maggo commented 12 years ago

Yeah makes sense. But you could rewrite the loadgraphic methods to use the asset path as addBimap Key :)

Beeblerox commented 12 years ago

Of course. I'll add it to the to do list

Beeblerox commented 12 years ago

Done. Now you can pass String or Class paramater and it will work fine.

maggo commented 12 years ago

Thank you! Von: Zaphod Gesendet: 24.12.2011 07:32 An: Maggo Betreff: Re: [HaxeFlixel] New Asset Management (#20) Done. Now you can pass String or Class paramater and it will work fine.


Reply to this email directly or view it on GitHub: https://github.com/Beeblerox/HaxeFlixel/issues/20#issuecomment-3266771