項目開發(fā)筆記-bb

2016年9月29日 星期四 恐龍樂園2

1 PH.combine() 只是過濾拼接

2 PATH_STORE_APP app路徑

3 CCFileUtils 類

4 由于骨骼xml 文件 x4使用的是x2的,刪除x4骨骼配置文件可以省去很資源。

function DragonBone.addFile(filePath)
    -- 格式化png, plist, xml路徑
    local imagePath         = string.format("%s.png", filePath)
    local plistPath         = string.format("%s.plist", filePath)
    local configFilePath    = string.format("res/img/x2/%s.xml", filePath)

    -- 骨架數(shù)據(jù)管理對象
    local armatureDataManager = CCArmatureDataManager:sharedArmatureDataManager()
    -- 添加骨架文件信息
    armatureDataManager:addArmatureFileInfo(imagePath, plistPath, configFilePath)
end

5 gamebase:getAllSearchPathes()是騙子?

6 CCClippingNode

local mask  = D.img("lloading/mask.png")
local clip  = CCClippingNode:create()

clip:setStencil(mask)
clip:setAlphaThreshold(.5)
clip:setAnchorPoint(ccp(0,0))
self:addChild(clip) 
CCNodeExtend.extend(clip)

local node = D.img("node.png"):to(clip)
    :cycle({
        {"moveby", 1, ccp(500, 0)},
        {"moveby", 1, ccp(- 500, 0)},
        })

6 luabinding

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容