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

我想问一下,这段代码转到cocos2d-x3.0(Lua)是什么样子的
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-