计算一个九宫格没有右侧的方法

来源:互联网 发布:人工智能语音电话 编辑:程序博客网 时间:2024/05/22 00:07
{
if (counts!= 6)
{
LogUtils::log_debug("init nineboxsprite Error FBNineBoxType_6Pic_456789");
return;
}
for (int i = 0; i< counts; i++)
{
string str = m_NineBoxConfig->m_SpriteFrameNameList[i];
if (str != "")
{
int k = i + i/2;
s[k] = CCSprite::createWithSpriteFrameName(str.c_str());
}
}
break;
}
0 0