picture 1.png 2.png 3.png point {200,300} {500,300} {800,300}
// //SmallTools2 CCDictionary* plistDic = CCDictionary::createWithContentsOfFile("SmallTools2.plist"); CCArray* picture_array = (CCArray*)plistDic->objectForKey("picture"); CCArray* point_array = (CCArray*)plistDic->objectForKey("point"); for (int i=0;icount();i++) { CCString* pi_string = (CCString*)picture_array->objectAtIndex(i); CCSprite* sprite = CCSprite::create(pi_string->getCString()); CCString* point_string = (CCString*)point_array->objectAtIndex(i); CCPoint point = CCPointFromString(point_string->getCString()); sprite->setPosition(ccp(point.x,point.y)); this->addChild(sprite,1,++TagCount); } //