Aaron_Joe
2017-12-05
请使用 http://www.cocos2d-lua.org/,本人已经验证通过,老师的代码可以完美运行。
Aaron_Joe
2017-12-05
local setting_button = ccui.Button:create("setting.png") :move(display.cx-150,display.cy-270) :addTo(self) :addClickEventListener( function() self:set() end)
纳尼小僧
2017-09-25
mvc框架下切换场景请使用AppBase的enterScene接口,这段代码的范例如下:

好好爱
2017-08-18
local function createButton(node,imgname,x,y,callback)
ccui.Button:create(imgname,imgname)
:setAnchorPoint(cc.p(0.5,0.5))
:setPosition(cc.p(x,y))
:addTo(node)
:addClickEventListener(callback)
end
风铃飞弦
2017-06-26
苕
2017-01-24
就是版本不对 ccui.Button:create("startGame.png", "startGame.png")
:move(display.cx,display.cy)
:addTo(self)
这样可以创建 只是我还不知道单击事件怎么加……
VIST0
2016-08-16
cocos2d-x官网
鋐hanx馫
2016-07-14
章鱼兽
2015-11-25