{"id":9553,"date":"2013-12-09T09:10:32","date_gmt":"2013-12-09T00:10:32","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=9553"},"modified":"2013-12-09T09:10:32","modified_gmt":"2013-12-09T00:10:32","slug":"lwf","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2013\/12\/9553\/","title":{"rendered":"LWF"},"content":{"rendered":"<p>\u30b5\u30f3\u30d5\u30e9\u30f3\u30b7\u30b9\u30b3\u304b\u3089\u3053\u3093\u306b\u3061\u306f\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5742\u672c \u4e00\u6a39(@splhack)\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u306f GREE Advent Calendar 2013 9\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002\u3068\u3044\u3046\u66f8\u304d\u51fa\u3057\u3067\u59cb\u307e\u308b\u3068\u601d\u3063\u305f\u4eba\u304c\u5927\u534a\u3060\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u3053\u306e\u8a18\u4e8b\u306fAdvent Calendar\u306e\u8a18\u4e8b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u3093\u306a\u306bAdvent Calendar\u306e\u8a18\u4e8b\u304c\u4e26\u3076\u306a\u304b\u3001Advent Calendar\u306e\u8a18\u4e8b\u3067\u306f\u306a\u3044\u8a18\u4e8b\u304c\u4e00\u7dd2\u306b\u4e26\u3076\u3068\u3044\u3046\u306e\u306f\u3001\u306a\u304b\u306a\u304b\u65ac\u65b0\u306a\u4f01\u753b\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002\u3053\u308c\u304c\u30b7\u30ea\u30b3\u30f3\u30d0\u30ec\u30fc\u6d41\u3067\u3059\u3002\u8a00\u3063\u3066\u307f\u305f\u304b\u3063\u305f\u3060\u3051\u3067\u3001\u672c\u5f53\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3002<br \/>\n\u305d\u3082\u305d\u3082\u3053\u308c\u3092\u66f8\u3044\u3066\u3044\u308b\u5834\u6240\u304c\u30b7\u30ea\u30b3\u30f3\u30d0\u30ec\u30fc\u304b\u3068\u3044\u3046\u3068\u3001\u3042\u308c\u3063\u3001\u30b5\u30f3\u30d5\u30e9\u30f3\u30b7\u30b9\u30b3\u3063\u3066\u30b7\u30ea\u30b3\u30f3\u30d0\u30ec\u30fc\u306a\u3093\u3067\u3057\u305f\u3063\u3051\u3001\u3068\u3044\u3046\u7591\u554f\u304c\u6d6e\u304b\u3093\u3067\u3057\u307e\u3046\u308f\u3051\u3067\u3059\u3002\u30b7\u30ea\u30b3\u30f3\u30d0\u30ec\u30fc\u3063\u3066\u3001\u30a2\u30e1\u30ea\u30ab\u5408\u8846\u56fd\u30ab\u30ea\u30d5\u30a9\u30eb\u30cb\u30a2\u5dde\u5317\u90e8\u306e\u30b5\u30f3\u30d5\u30e9\u30f3\u30b7\u30b9\u30b3\u30fb\u30d9\u30a4\u30a8\u30ea\u30a2\u306e\u5357\u90e8\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\u30b5\u30f3\u30bf\u30af\u30e9\u30e9\u30d0\u30ec\u30fc\u304a\u3088\u3073\u305d\u306e\u5468\u8fba\u5730\u57df\u306e\u540d\u79f0\u306a\u306e\u3067\u3001\u3084\u306f\u308a\u30b5\u30f3\u30d5\u30e9\u30f3\u30b7\u30b9\u30b3\u306f\u30b7\u30ea\u30b3\u30f3\u30d0\u30ec\u30fc\u3067\u306f\u306a\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3001\u3068\u3044\u3046\u7d50\u8ad6\u306b\u9054\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u306a\u304c\u3089\u3001\u3069\u3053\u3067\u50cd\u3044\u3066\u3044\u308b\u306e\u3001\u30b7\u30ea\u30b3\u30f3\u30d0\u30ec\u30fc\u3067\u3059\u3088\u30b7\u30ea\u30b3\u30f3\u30d0\u30ec\u30fc\u3001\u3063\u3066\u8a00\u3044\u305f\u3044\u308f\u3051\u3058\u3083\u306a\u3044\u3067\u3059\u304b\u3002\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30a8\u30f3\u30b8\u30cb\u30a2\u306a\u3093\u3067\u3059\u304b\u3089\u3002<br \/>\n\u3061\u306a\u307f\u306b\u305d\u306e\u30b5\u30f3\u30d5\u30e9\u30f3\u30b7\u30b9\u30b3\u3001\u4eca\u5e74\u306f\u8d85\u5bd2\u3044\u3067\u3059\u3002\u4e00\u756a\u5bd2\u3044\u6642\u306f\u6442\u6c0f0\u5ea6\u304d\u3063\u3066\u307e\u3059\u3002\u83ef\u6c0f\u3060\u3068\u3001\u3042\u3001\u30a2\u30e1\u30ea\u30ab\u3060\u3068\u6c17\u6e29\u306f\u83ef\u6c0f\u3092\u4f7f\u3046\u3093\u3067\u3059\u304c\u3001\u6442\u6c0f0\u5ea6\u306f\u83ef\u6c0f32\u5ea6\u3067\u3059\u3002\u6c34\u306e\u6cb8\u70b9\u306f212\u5ea6\u3067\u3059\u3088\u3002212\u5ea6\u3002\u5929\u6c17\u4e88\u5831\u3067\u3001\u4eca\u65e5\u306e\u6700\u9ad8\u6c17\u6e2950\u5ea6\u3067\u3059\u3001\u3068\u304b\u8a00\u3063\u3066\u3044\u308b\u306e\u3092\u805e\u304f\u3068\u3001\u304d\u308a\u304c\u826f\u3044\u6570\u5b57\u3060\u306a\u3068\u304b\u601d\u3046\u308f\u3051\u3067\u3059\u304c\u3001\u5b9f\u969b\u304d\u308a\u304c\u3044\u3044\u6570\u5b57\u3068\u3044\u3046\u306e\u306f\u539f\u70b9\u8003\u3048\u308b\u306872\u5ea6\u3068\u304b\u3060\u3088\u306a\u3001\u306a\u3069\u601d\u3044\u76f4\u3059\u3053\u3068\u306b\u306a\u308b\u308f\u3051\u3067\u3059\u3002\u3048\u3048\u3002\u307e\u3041\u884c\u6570\u7a3c\u3050\u306e\u306f\u3053\u308c\u304f\u3089\u3044\u306b\u3057\u3066\u3001\u672c\u984c\u306b\u5165\u3089\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<p\/>\n<p><img decoding=\"async\" src=\"http:\/\/gree.github.io\/lwf\/images\/LWF-logo.png\" alt=\"LWF Logo\" \/><\/p>\n<p\/>\n<p\/>\n<p>\u300c<strong>LWF for C++<\/strong>\u300d\u3068\u300c<strong>Cocos2d-x\u30ec\u30f3\u30c0\u30e9<\/strong>\u300d\u3092<strong>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9<\/strong>\u3068\u3057\u3066\u516c\u958b\u3044\u305f\u3057\u307e\u3059! \u3057\u304b\u3082\u3001\u5b89\u5fc3\u306e<strong>zlib\u30e9\u30a4\u30bb\u30f3\u30b9<\/strong>\u3002<\/p>\n<p\/>\n<p\/>\n<p><a href=\"https:\/\/github.com\/gree\/lwf\">https:\/\/github.com\/gree\/lwf<\/a><\/p>\n<p\/>\n<p>LWF\u3068\u306f\u3001Adobe Flash\u3092\u5229\u7528\u3057\u305f\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5bfe\u5fdc\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u30a8\u30f3\u30b8\u30f3\u3067\u3059\u3002\u8a73\u3057\u304f\u306f <a href=\"http:\/\/gree.github.io\/lwf\/\">http:\/\/gree.github.io\/lwf\/<\/a> \u3084 <a href=\"http:\/\/cr.gree.jp\/blog\/2013\/11\/683\/\">http:\/\/cr.gree.jp\/blog\/2013\/11\/683\/<\/a> \u306a\u3069\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u307e\u305b\u3002<\/p>\n<p>1\u5e74\u307b\u3069\u524d\u306b\u3001Unity\u5411\u3051\u306bC#\u7248\u3092\u3001HTML5\u5411\u3051\u306bJavaScript\u7248\u3092\u516c\u958b\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306fC++\u8a00\u8a9e\u3067\u5b9f\u88c5\u3057\u305f\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u672c\u5f53\u306fC++11 ISO\/IEC 14882:2011\u306b\u6cbf\u3063\u305f\u3044\u307e\u3075\u3046\u306e\u30b3\u30fc\u30c9\u3068\u3057\u3066\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u601d\u3044\u306e\u5916C++11\u304c\u4f7f\u3048\u306a\u3044\u74b0\u5883\u304c\u591a\u3044\u3053\u3068\u306b\u6c17\u3065\u3044\u305f\u305f\u3081\u3001ISO\/IEC 14882:2003 (C++03)\u306b\u6cbf\u3063\u305f\u30b3\u30fc\u30c9\u306b\u76f4\u3057\u305f\u7d4c\u7def\u304c\u3042\u3063\u305f\u308a\u3057\u307e\u3059(\u300c\u4eba\u985e\u306b\u306fC++11\u306f\u65e9\u904e\u304e\u305f\u3093\u3060!\u300d\u3068\u304b\u8a00\u3044\u306a\u304c\u3089)\u3002\u3068\u3044\u3063\u3066\u3082\u3001C++03\u3069\u3063\u3077\u308a\u3067\u306f\u306a\u304f\u3001C++03\u74b0\u5883\u3067\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u306fBoost\u3092\u4f7f\u7528\u3057\u3001C++11\u74b0\u5883\u3067\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u306fC++11\u306a\u308a\u306bBoost\u4e0d\u8981\u3068\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002\u30b9\u30de\u30fc\u30c8\u30dd\u30a4\u30f3\u30bf\u306b\u3088\u308a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u3067\u306e\u30e1\u30e2\u30ea\u7ba1\u7406\u306f\u305d\u308c\u307b\u3069\u8003\u616e\u3057\u306a\u304f\u3066\u3082\u5927\u4e08\u592b\u3067\u3059\u3057\u3001\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u306b\u306flambda\u304c\u4f7f\u3048\u307e\u3059\u304b\u3089\u3001\u3044\u307e\u3075\u3046\u306a\u66f8\u304d\u65b9\u304c\u3067\u304d\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u306eAPI\u4f7f\u7528\u611f\u306f\u3001C#\u7248\u3001JavaScript\u7248\u3068\u540c\u69d8\u306b\u306a\u308b\u3088\u3046\u306a\u30b9\u30bf\u30a4\u30eb\u3067\u7d71\u4e00\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u82e5\u5e72C++\u307d\u304f\u306a\u3044\u3093\u3058\u3083\u306a\u3044? \u3068\u3044\u3046\u3088\u3046\u306a\u90e8\u5206\u306f\u3001\u3060\u3044\u305f\u3044\u305d\u308c\u304c\u7406\u7531\u3067\u3059\u3002<\/p>\n<p>LWF for HTML5\u3067\u306f\u3001Webkit CSS\u3001Canvas\u3001WebGL\u3001Cocos2d-html5\u3068\u3044\u3063\u305f\u69d8\u3005\u306a\u63cf\u753b\u74b0\u5883\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u3053\u3068\u304b\u3089\u308f\u304b\u308b\u3088\u3046\u306b\u3001LWF for C++\u3082\u63cf\u753b\u74b0\u5883\u3001\u30b2\u30fc\u30e0\u30a8\u30f3\u30b8\u30f3\u3068\u3044\u3063\u305f\u3082\u306e\u304b\u3089\u306f\u5206\u96e2\u3057\u305f\u4f5c\u308a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u5206\u96e2\u3057\u305f\u307e\u307e\u3060\u3068\u3001\u5b9f\u969b\u4f7f\u3046\u3068\u304d\u306b\u30ec\u30f3\u30c0\u30e9\u30920\u304b\u3089\u66f8\u304b\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u305f\u3081\u3001\u4eca\u56de\u306f\u6a19\u6e96\u63cf\u753b\u74b0\u5883\u3068\u3057\u3066Cocos2d-x\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002\u305f\u3060\u3057\u3001Bleeding Edge\u306a\u611f\u3058\u306b\u3001Cocos2d-x 3.0alpha1\u4ee5\u4e0a\u306b\u5bfe\u5fdc\u3057\u305f\u30b3\u30fc\u30c9\u3067\u3059\u30022.x\u3067\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u6539\u9020\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5\u306f\u7c21\u5358\u3067\u3059\u3002Flash\u30c7\u30fc\u30bf\u3092Cocos2d-x\u306e\u30ce\u30fc\u30c9\u3068\u3057\u3066\u6271\u3048\u308b\u611f\u899a\u3067\u3059\u3002\u30e1\u30e2\u30ea\u7ba1\u7406\u3082Cocos2d-x\u306b\u6cbf\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code>LWFNode *lwfNode = LWFNode::create(\"sample.lwf\");\naddChild(lwfNode);\n<\/code><\/pre>\n<p>C#\u7248\u3001JavaScript\u7248\u540c\u69d8\u306b\u3001gotoAndPlay\u306a\u3069\u306e\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5236\u5fa1API\u304c\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u306a\u304a\u3001LWF for HTML5\u3067\u306f\u3001\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u5236\u5fa1\u306e\u305f\u3081\u306e\u30b3\u30fc\u30c9\u3092\u3001Flash\u57cb\u3081\u8fbc\u307f\u306eJavaScript\u3068\u3057\u3066\u8a18\u8ff0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002Flash\u306eActionScript\u3001CreatJS\u306eJavaScript\u3068\u540c\u3058\u3067\u3059\u3002LWF for C++\u3067\u3082\u540c\u69d8\u306b\u3001C++\u304b\u3089\u306e\u76f4\u63a5\u5236\u5fa1\u3067\u306f\u306a\u304f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u304b\u3089\u5236\u5fa1\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u306f\u3001\u7d44\u307f\u8fbc\u307f\u3084\u3059\u3055\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u306a\u3069\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u8003\u616e\u3057\u305f\u7d50\u679c\u3001Lua\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<pre><code>self:gotoAndPlay(\"attack\")\n<\/code><\/pre>\n<p>Lua\u3088\u308aJavaScript\u304c\u4f7f\u3044\u305f\u3044! \u3068\u8a00\u308f\u308c\u308b\u3093\u3067\u3059\u304c\u3001\u3044\u307e\u3069\u304d\u306e\u30c7\u30d0\u30a4\u30b9\u901f\u3044\u3093\u3067\u3001\u305d\u308cLWF for HTML5\u3067\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u3067\u3059\u304b\u3001\u3068\u3044\u3046\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002\u305f\u3060JavaScript to LWF Lua Binding\u3068\u304b\u5b9f\u88c5\u3057\u3066\u307f\u305f\u3044\u3068\u3053\u308d\u3067\u306f\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u3044\u3048\u3070\u3001LWF\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u306a\u3044\u3082\u306e\u306e\u4ee3\u540d\u8a5e\u306b\u306a\u3063\u3061\u3083\u3063\u3066\u307e\u3059\u304c\u3001\u305d\u308c\u3082\u7de9\u548c\u3055\u308c\u3064\u3064\u3042\u308a\u307e\u3059!<\/p>\n<p><a href=\"http:\/\/lwf-users.org\/\">http:\/\/lwf-users.org\/<\/a><\/p>\n<p>LWF for HTML5\u7248\u4e2d\u5fc3\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u3059\u304c\u3001LWF for C++\u3001LWF for Unity\u306b\u3082\u305d\u306e\u307e\u307e\u9069\u7528\u3067\u304d\u308b\u5185\u5bb9\u304c\u591a\u3044\u3067\u3059\u3002API\u3082\u307b\u307c\u540c\u4e00\u3067\u3059\u3002\u662f\u975e\u3054\u89a7\u304f\u3060\u3055\u3044\u307e\u305b\u3002<\/p>\n<p>\u306a\u304aLWF for C++\u306fCocos2d-x\u5c02\u7528\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u305f\u3068\u3048\u3070\u3001iOS\u306eUIKit\u4e0a\u3067Flash\u3067\u30aa\u30fc\u30b5\u30ea\u30f3\u30b0\u3057\u305f\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3092\u3044\u3044\u611f\u3058\u306b\u52d5\u304b\u3057\u305f\u308a\u3067\u304d\u308b\u306e\u3067\u3059\u3002\u662f\u975e\u30ec\u30f3\u30c0\u30e9\u3092\u66f8\u3044\u3066\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3068\u3057\u3066\u516c\u958b\u3057\u3066\u304f\u3060\u3055\u3044\u307e\u305b!<\/p>\n<p>Happy Holidays and Hacking!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30f3\u30d5\u30e9\u30f3\u30b7\u30b9\u30b3\u304b\u3089\u3053\u3093\u306b\u3061\u306f\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5742\u672c \u4e00\u6a39(@splhack)\u3067\u3059\u3002 \u3053\u306e\u30a8\u30f3\u30c8\u30ea\u306f GREE Advent Calendar 2013 9\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002\u3068\u3044\u3046\u66f8\u304d\u51fa\u3057\u3067\u59cb\u307e\u308b\u3068\u601d\u3063\u305f\u4eba\u304c\u5927\u534a\u3060\u3068\u601d\u3046\u306e\u3067\u3059 [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[18,45,41],"class_list":["post-9553","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-flash","tag-lwf","tag-open-source"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/9553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=9553"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/9553\/revisions"}],"predecessor-version":[{"id":9569,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/9553\/revisions\/9569"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=9553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=9553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=9553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}