标签:cocos2d js 动态加载图像
官网没有具体例子,只有看api,研究成果如下
var that = this; var url = "http://xxxxxx"; cc.loader.loadImg(url, null, function(err,img){ var logo = new cc.Sprite(img); that.addChild(logo); logo.x = size.width / 2; logo.y = size.height / 2; });
标签:cocos2d js 动态加载图像
原文地址:http://blog.csdn.net/dayday_up2/article/details/39931737