摘要:
local scene = cc.Scene:create()cc.Director:getInstance():replaceScene( scene )cc.Director:getInstance():pushScene( cc.TransitionSlideInT:create(1, sce... 阅读全文
摘要:
创建local layer = cc.Layer:create()local layer1 = cc.LayerColor:create(cc.c4b(192, 0, 0, 255), s.width, s.height/2)--渐变local layer2 = cc.LayerGradient:c... 阅读全文
摘要:
创建精灵local sprite = cc.Sprite:create("Images/grossini_dance_atlas.png", cc.rect(x,y,85,121) )layer:addChild( sprite )local BatchNode = cc.SpriteBatchNo... 阅读全文
摘要:
命名空间cc cocos2d核心类ccb cocosbuilder扩展ccs cocostudio扩展cocos2d目录结构bitExtend.lua cocos2d.luacocos2dConstants.luafuntions.lua 提供一组常用函数,以及对 Lua 标准库的扩展js... 阅读全文