标签:
cc.spriteFrameCache.addSpriteFrames(res.winLose_plist,res.winLose_png); var frame = cc.spriteFrameCache.getSpriteFrame("win-lost-bei.png"); var backHighlightSprite = cc.Sprite.createWithSpriteFrame(frame); backHighlightSprite.setPosition(100, 100); this.addChild(backHighlightSprite);
cocos2d js 利用texture packer生成sprite
标签:
原文地址:http://www.cnblogs.com/ziyouchutuwenwu/p/4196492.html