HaxeFlixel / flixel

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

Enhancement: Adobe Animate Texture Atlas / Spritemap support #2363

Open CyndaquilDAC opened 3 years ago

CyndaquilDAC commented 3 years ago

Adobe animate spritemaps are a way to save memory and space over the regular spritesheet format and simultaneously store longer animations with no issue. Instead of having an entire graphic for every frame, it generates all the individual pieces that you can assemble using the two generated JSONs: one that stores animation data (rotation, scaling, positioning, the works) and one that stores the positions of the pieces on the spritemaps. I doubt this would be easy or even feasible to implement, but it would be very, very useful.

Geokureli commented 3 years ago

I know @ninjamuffin99 was looking into something this for FNF. I don't know how far he got but I'd love to see it added to flixel.

Cam got a status? let me know if there's anything I can do to help

polybiusproxy commented 3 years ago

I support this idea!

CyndaquilDAC commented 3 years ago

I know @ninjamuffin99 was looking into something this for FNF. I don't know how far he got but I'd love to see it added to flixel.

Cam got a status? let me know if there's anything I can do to help

@Smokey555 has one that works, albeit only with animate 2018.

ninjamuffin99 commented 2 years ago

just to redirect some peeps to somethin nice, this library seems to be nice, haven't tried it out yet, but i like the logo lol! https://github.com/Dot-Stuff/flxanimate

Cheemsandfriends commented 2 years ago

just to redirect some peeps to somethin nice, this library seems to be nice, haven't tried it out yet, but i like the logo lol! https://github.com/Dot-Stuff/flxanimate

It would be interesting that someday it could be merged inside flixel lol

Geokureli commented 2 years ago

we could always make a flixel-swf haxelib

Cheemsandfriends commented 2 years ago

we could always make a flixel-swf haxelib

that would be actually nice and I think it would be relatively easy if the texture atlas base is good enough tbh it would be just parsing the swf and voilá, a working swf in your game just for you

ninjamuffin99 commented 1 year ago

out here in 2023, at THE FUNKIN CREW INC (mostly @EliteMasterEric ) we made more progress implementing FlxAnimate and making it play nice and all that. as well as that i personally have been learning more and more about the insides of how it all works! if anything, might be nice to at least make a flixel demo around it!

Geokureli commented 1 year ago

I think a demo is the right move. Now that we have an official list of External Tools I don't think we need to absorb FlxAnimate and create roles that allow Cheems to manage it. A decentralized approach may be better. Obviously we need to improve the External Tools presentation and coverage, and include them on the Haxeflixel Website. We might even list FlxAnimate on top of the flixel Readme.

Note: In order for flixel to use new external libraries in demos we need to add them to our Setup-Flixel github action and coverage tests. this is fine for FlxAnimate, but know that not all external tools will have this privilage.