hey guys i have a simple problem:
I have a file.json with:
{
“tiles” :180,
“targetScore” : 1000,
“moves” : 15,
}
With this I can take all.
var url = cc.url.raw(‘resources/file.json’);
cc.loader.load( url, function(err, res)
{
cc.log( ‘load[’+ url +’], err[’+err+’] result: ’ + JSON.stringify( res ) );
});
How can I just take a field? for example targetScore?