cocos2d-js
cocos2d-js copied to clipboard
cocos2d-x for JS
cocos2d-js 3.6.1 这两段代码: ``` this.runAction(cc.repeat(cc.sequence( cc.delayTime(0.1), cc.callFunc(function(){ cc.log(111111); },this) ),3)); this.runAction(cc.repeat( cc.callFunc(function(){ cc.log(22222); },this) ,3)); ``` 第一个callFunc会执行4次,而第二个callFunc会执行2次
在layer里面放置了一个tableview,希望点击某个cell时移除此layer,web上正常,但jsb之后在手机上点击后apk崩溃,在另一个平板上也是这样。代码如下 var ProfileListLayer = cc.Layer.extend({ ctor:function () { this._super(); this.init(); }, //其他代码基本照抄tests中的例子 tableCellTouched:function (table, cell) { cc.log("cell touched at index: " + cell.getIdx()); this.removeFromParent(); } });
:8000/frameworks/cocos2d-html5/extensions/cocostudio/armature/utils/CCDataReaderHelper.js:1081 Uncaught TypeError: Cannot read property 'content_scale' of undefined ``` javascript /** * Adds json armature data to armature data manager. * @param {Object} dic json armature data * @param...
重现方式: ``` var scene = new cc.Scene(); var layout = new ccui.Layout(); layout.onEnter = function(){ cc.log("--------------begin"); ccui.Widget.prototype.onEnter.call(this); cc.log("--------------end"); }; layout.addTouchEventListener(function(){},layout); scene.addChild(layout); cc.director.runScene(scene); ``` 以上代码执行时会出现 layout.onEnter 调用 ccui.Widget.prototype.onEnter; c++部分又调用 layout.onEnter。 debug后发现问题出现在...
On Web, i play game and then i change to other tab and final back to game tab. The effect sound bug occurs, it plays old paths again. This bug...
通过 xhr = cc.loader.getXMLHttpRequest(); xhr.onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status
Hi i keep getting this crash on IOS device, but am not able to figure out exactly why is it happening. I am using crashlytics for bug reporting but even...
有时候显示黑屏,有时候进度卡在0%,但是旋转屏幕之后就恢复正常了
I read api document said cc.EaseBounceIn has a static function named "reverse" , it works in html5 but reports TypeError in jsb. here is the code i wrote moveY.easing(cc.easeBounceIn().reverse());
``` RenderTexture.setPosition(cc.p(winSize.width / 2, winSize.height / 2)); RenderTexture.beginWithClear(255, 255, 255, 0.0); cc.director.getRunningScene().visit(); RenderTexture.end(); var imgPath = jsb.fileUtils.getWritablePath(); var result = RenderTexture.saveToFile(fileName, cc.IMAGE_FORMAT_PNG); if (result) { imgPath += fileName; open_img(imgPath); //...