在模拟器和crome调试的时候都没问题,但是用手机访问就会黑屏,连帧率都不显示,求助啊 !!
代码奉上:
var size = cc.winSize;
this.ball = new cc.Sprite(res.CloseNormal_png);
this.ball.setPosition(0, 0);
this.addChild(this.ball, 1);
var ball_texture = cc.textureCache.addImage(res.ball_png);
this.streak = new cc.MotionStreak(100,1,10,cc.color(255, 10, 10, 255),ball_texture);
this.addChild(this.streak, 1);
this.ball.runAction(new cc.MoveBy(2,cc.p(300, 600)));
//cc.Particle(pos, startPos, color, deltaColor, size, deltaSize, rotation, deltaRotation, timeToLive, atlasIndex, modeA, modeB)
this.scheduleUpdate();
难道我需要做一些其他的设置??