SpriteBatchNode

SpriteBatchNode* parent = SpriteBatchNode::create("bar.png", 50);
addChild(parent);


Sprite* barSprite = Sprite::create("bar.png");
barSprite->setPosition(Point(200+28*i,100));
barArray->addObject(barSprite);
parent->addChild(barSprite);

你可能感兴趣的:(SpriteBatchNode)