Skip to content

splhack/Hello-LWF-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hello-LWF-Unity

An example of LWF for Unity

What is LWF?

LWF http://gree.github.io/lwf/

LWF is an animation engine which can play animation data converted from FLASH contents in HTML5, Unity, Cocos2d-x, iOS UIKit, and more. LWF is designed to make game development easy and fun.

It means that LWF allows you to make animation using Adobe Flash for your Unity Application.

The example

You'll see a Flash movie which is embedded on Unity.

How to use Adobe Flash for making animation

Please take a look at LWF Presentation and LWF Production Guide.

Install LWFS https://github.com/gree/lwfs to convert Adobe Flash data into LWF data. It automatically converts in ~/Desktop/LWFS_work folder and shows the data on Web browser.

Lua scripting

This project also enables Lua scripting of LWF with KopiLua.

Define LWF_USE_LUA in Assets/smcs.rsp.

Load Lua script and pass luaState to luaState argument of LWFObject.Load method.

var script = Resources.Load(Lua_script_filename) as TextAsset;
L = new Lua();
L.DoString(script.text);
Load(lwfPath, luaState:L.luaState);

You can also write Lua script in Flash actionscript panel like LWF for HTML5 Embedded JavaScript.

For instance,

/* lua
    self:gotoAndPlay("run")
*/


on (press) { /* lua
    self.cat:gotoAndPlay("jump")
*/ }

TBU

About

Hello LWF for Unity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published