创建新项目,目标是把LogoNode.js场景引入app.js新建LogoNode.jsvar LogoLayer = cc.Layer.extend({ ctor:function () { this._super(); //引入图片 var sta... Read More
posted @ 2016-01-18 17:23 tinyphp Views(1023) Comments(0) Diggs(0) Edit
Cocos2d-js工程默认启动入口为app.js,准备修改为另外一个入口文件如:GameScene.jsvar GameLayer = cc.Layer.extend({ ctor:function () { ////////////////////////////// ... Read More
posted @ 2016-01-18 16:42 tinyphp Views(592) Comments(0) Diggs(0) Edit
以图片为例:创建项目后,把图片放入res文件夹,修改app.jsvar HelloWorldLayer = cc.Layer.extend({ sprite:null, ctor:function () { ////////////////////////////// ... Read More
posted @ 2016-01-18 14:42 tinyphp Views(752) Comments(0) Diggs(0) Edit