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,搞定!