随笔分类 - Cocos2d-js
摘要:cocos compile -p android --android-studio --app-abi=armeabi-v7a ./adb kill-server&& ./adb server && ./adb shell
阅读全文
摘要:void setBounceEnabled (bool enabled)设置当滚动到边界时,是否内部容器发生弹回(bounce)效果 bool isBounceEnabled () const获取边界弹回(bounce)状态。 void setInertiaScrollEnabled (bool e
阅读全文
摘要:var writablePath = jsb.fileUtils.getWritablePath(); writablePath += "cocos/data/"; var fileName = "file.js"; var fullPath = writablePath + fileName; j
阅读全文
摘要:1. setTexture和setSpriteFrame方法 修改精灵的里面的图片的时候如果是图片使用 如果是图集的话 使用
阅读全文
摘要:/** * Goto the specified frame index, and pause at this index. * @param startIndex The animation will pause at this index. */gotoFrameAndPause: function(startIndex){ this._startFrame = this._curre...
阅读全文