var onProgress = function ( completedCount, totalCount, item ){
this._progress = (100 * completedCount / totalCount).toFixed(2);
console.log("加载进度======",this._progress);
};
var onComplete = function (errors, items) {
if (errors){
for (var i = 0; i < errors.length; ++i) {
cc.log('Error url: ' + errors[i] + ', error: ' + items.getError(errors[i]));
}
}
else{
cc.log('Completed ' + items.totalCount + ' items');
}
}
cc.LoadingItems.create(cc.loader,['battle_icon_blackrimofeye_1a.png','atlas/angry.plist'],onProgress.bind(this),onComplete.bind(this));
始终加载资源失败:
D/jswrapper (125): JS: Error url: battle_icon_blackrimofeye_1a.png, error: Error: Load image failed: battle_icon_blackrimofeye_1a.png
D/jswrapper (125): JS: Error url: atlas/angry.plist, error: Error: Download text failed: atlas/angry.plist
battle_icon_blackrimofeye_1a.png是放在resources目录下
atlas也在resources目录下
请问是怎么回事呢?
