标签:
/* CCSprite* sprite=CCSprite::create("images.pvr.ccz"); sprite->setPosition(visibleSize.width/2,visibleSize.height/2); addChild(sprite); */ auto cache = SpriteFrameCache::getInstance(); cache->addSpriteFramesWithFile("images.plist"); SpriteFrame *frame=cache->getSpriteFrameByName("bullet.png"); Sprite* sprite=Sprite::create(); sprite->setSpriteFrame(frame); sprite->setPosition(visibleSize.width/2,visibleSize.height/2); addChild(sprite);
标签:
原文地址:http://www.cnblogs.com/yufenghou/p/4463066.html