LabelBMFont inherit SpriteBatchNode instead of NewSpriteBatchNode

remove NewSpriteBatchNode testcase to SpriteBatchNode
This commit is contained in:
Huabing.Xu 2013-12-24 10:51:35 +08:00
parent 410cfb9ca4
commit b61bf3ad95
2 changed files with 3 additions and 3 deletions

View File

@ -190,7 +190,7 @@ http://www.angelcode.com/products/bmfont/ (Free, Windows only)
@since v0.8
*/
class CC_DLL LabelBMFont : public NewSpriteBatchNode, public LabelProtocol
class CC_DLL LabelBMFont : public SpriteBatchNode, public LabelProtocol
{
public:
/**

View File

@ -229,7 +229,7 @@ NewSpriteBatchTest::NewSpriteBatchTest()
touchListener->onTouchesEnded = CC_CALLBACK_2(NewSpriteBatchTest::onTouchesEnded, this);
_eventDispatcher->addEventListenerWithSceneGraphPriority(touchListener, this);
auto BatchNode = NewSpriteBatchNode::create("Images/grossini_dance_atlas.png", 50);
auto BatchNode = SpriteBatchNode::create("Images/grossini_dance_atlas.png", 50);
addChild(BatchNode, 0, kTagSpriteBatchNode);
}
@ -259,7 +259,7 @@ void NewSpriteBatchTest::onTouchesEnded(const std::vector<Touch *> &touches, Eve
void NewSpriteBatchTest::addNewSpriteWithCoords(Point p)
{
auto BatchNode = static_cast<NewSpriteBatchNode*>( getChildByTag(kTagSpriteBatchNode) );
auto BatchNode = static_cast<SpriteBatchNode*>( getChildByTag(kTagSpriteBatchNode) );
int idx = (int) (CCRANDOM_0_1() * 1400 / 100);
int x = (idx%5) * 85;