quick 添加 GAF

来源:互联网 发布:开淘宝网店的流程2016 编辑:程序博客网 时间:2024/06/03 16:03

Cocos2dxGAFPlayer:https://github.com/CatalystApps/Cocos2dxGAFPlayer

记录一下步骤:

1、将Cocos2dxGAFPlayer文件夹拷贝至cocos/external文件夹下
2、将打开Player.sln,添加现有项目,将Libray\GAFPlayer工程和lua_bindings\proj.win32\libGAFLuaBinding工程添加进来
3、Player工程属性里添加上面两个工程的引用
4、修改AppDelegate.cpp:
          声明部分添加以下几行: 
          #include "GAF.h"
          #include "lua_gaf.hpp"
          #include "lua_gaf_main.hpp"
         USING_NS_GAF;

        找到 quick_module_register 方法,里面添加两行:
        register_all_gaf(L);
        append_gaf_scripts(L);

重新编译Player,搞定!
原创粉丝点击