摘要:
var mainLayer = cc.Layer.extend({ ctor : function () { this._super(); cc.associateWithNative(this, cc.Layer);// 中间背景 var mainBG1 = cc.Sprite.create(Res.Images.Main.main_bg); var scale = WIN_HEIGHT / mainBG1.getContentSize().height; mainBG1.setScale(scale); mainBG1.setAnchorPoint(cc.p(0.5, 0.5)); mai 阅读全文