cc.spriteFrameCache.addSpriteFrames(s_plist);
var spriteTest001 = cc.Sprite.create(cc.spriteFrameCache.getSpriteFrame("16.jpg"));
spriteTest001.setAnchorPoint(0.5,0.5);
spriteTest001.setPosition(size.width / 2,size.height / 2);
this.addChild(spriteTest001,4);
原文链接:https://www.f2er.com/cocos2dx/345801.html