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);