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);
时间: 2024-11-05 06:29:41