创建新项目,目标是把LogoNode.js场景引入app.js新建LogoNode.jsvar LogoLayer = cc.Layer.extend({ ctor:function () { this._super(); //引入图片 var sta... Read More
Cocos2d-js工程默认启动入口为app.js,准备修改为另外一个入口文件如:GameScene.jsvar GameLayer = cc.Layer.extend({ ctor:function () { ////////////////////////////// ... Read More
以图片为例:创建项目后,把图片放入res文件夹,修改app.jsvar HelloWorldLayer = cc.Layer.extend({ sprite:null, ctor:function () { ////////////////////////////// ... Read More