Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
“LWF” uses an animation engine based on a unique file format to render animation data converted from Flash content playable on Unity and HTML5. Usage example of “LWF” in “Animal Days”
Isn't it good?
It's LWF (Lightweight SWF).
It's a framework to take animation data from SWF data generated by Adobe Flash and to convert it to a unique format. It can be played on Unity and HTML5.
However it doesn't support the complicated things such as shape, mask and ActionScript.
You might want to say "Hmm, taking animation data from SWF and play it. My colleague already implemented it.”
However, there are following special features for LWF.
- Resize the image at run time. Although only one SWF data for non-Retina is prepared, it can read images both Retina and non-Retina.
- Work with texture sheets. The converter reads TexturePacker JSON file.
- Game friendly APIs.
For example, write the following codes for ActionScript.
/* js this.gotoAndPlay("run"); */
Those are almost same as seen above. In the below example of ActionScript for moving MovieClip.
this.mc._x += 10; this.mc._y += 15;
/* js this.mc.x += 10; this.mc.y += 15; */
Did you get it?
The space is too small to explain how to handle this concretely.
Sorry! ... I was just kidding. Actually, there's no document to explain it now, but we are planning to update and provide it soon.
If you have the "use the Source, Luke!" attribute, please try the source code. It should work.
Please enjoy "LWF"! Thank you!
Oops, I forgot to tell you the following things.
For HTML5 version, the below renderers have been implemented.
- WebKit CSS 3D
Please select an appropriate renderer for your environment!