wxyy1991 2015-09-11 02:40 采纳率: 100%
浏览 1535

我想问一下,这段代码转到cocos2d-x3.0(Lua)是什么样子的

local label = CCLabelTTF:create("Hello Lua","Courier",50)
label:setPosition(ccp(300,300))
local scene = CCScene:create()
local layer = CCLayer:create()
scene:addChild(layer)
layer:addChild(label)
CCDirector:sharedDirector():runWithScene(scene)
更多 0

  • 写回答

1条回答 默认 最新

  • 超級码力 博客专家认证 2015-11-05 16:28
    关注

    把里面大写 CC 替换为 cc.

    评论

报告相同问题?