How to used plist in cocos2dxHtml5

How to used plist in cocos2dxHtml5
0.0 0

#1

How to used plist in cocos2dxHtml5 , With all details such as resource.js class structure

for Exmaple Without Used Plist – resource.js
var res = {
HelloWorld_png : “res/HelloWorld.png”,
}

var g_resources = [];
for (var i in res) {
g_resources.push(res[i]);
}

// implementation
var spriteObject = new cc.Sprite(res.HelloWorld_png);
this.sprite.attr({x: size.width / 2,y: size.height / 2
});
this.addChild(this. spriteObject, 0);


#2

I don’t understand what you need, but you do have cc.plistParser for parsing plist files