cocos2d-x lua项目中创建Label崩溃

2014-10-5 孤独求学人 cocos2d-x

   今天使用cocos2d-x 3.2版本新建lua项目,测试lable外描边一直提示LUA ERROR:  attempt to index local 'label' (a nil value)

local function test()
        local layer = cc.Layer:create()

        local s = cc.Director:getInstance():getWinSize()

        local col = cc.LayerColor:create( cc.c4b(200, 191, 231, 255))
        layer:addChild(col)

        local ttfConfig = {}
        ttfConfig.fontFilePath = "res/fonts/arial.ttf"
        ttfConfig.fontSize = 40
        ttfConfig.glyphs   = cc.GLYPHCOLLECTION_DYNAMIC

阅读全文>>

标签: cocos2dx cocos2d-x label

评论(0) 浏览(3038)

Powered by emlog 豫ICP备15004178号-1