导航

2013年11月19日

摘要: cocos2d-x 改变精灵图片的2种方法。1。[cpp]view plaincopy//首先载入贴图集CCSpriteBatchNode*spriteBatch=CCSpriteBatchNode::batchNodeWithFile("snake.png");this->addChild(spriteBatch);CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("snake.plist");//生成SpriteCCSprite*headSprite 阅读全文

posted @ 2013-11-19 20:31 ADaii 阅读(262) 评论(0) 推荐(0) 编辑