刚看这个,谁知道啊
我使用的是 cocos2d-js 3.6.1
问题:
1、 使用action 特效 写了一个 demo
var role = new cc.NodeGrid();
var img = new cc.Sprite(res.Role_png);
role.addChild(img);
var imgSize = img.getContentSize();
var pw = size.width/2;
var hw = size.height/2;
role.setPosition(pw,hw);
this.addChild(role);
var shaky = new cc.Shaky3D(5,cc.size(50,50),5,false);
var shuffle = new cc.ShuffleTiles(1,cc.size(50,50),25);
role.runAction(new cc.sequence(shaky,shuffle));
在浏览器中运行的时候 图片出现在 右上角
2、根据官方教程 使用 simulator 配置调试 黑屏
3、使用命令 cocos run -p android 在真机上调试 也黑屏
同一个项目 同一个代码