//
// GameObject::playDestroyObjectAnim from 0x9b2ce4 to 0x9b3be8 (3844 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::destroyObject @ 0x88b294
// > ??> @ 0x85290
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameObject::playDestroyObjectAnim(GameObject *a1, GJBaseGameLayer *a2)
{
unsigned int v4; // w22
char *v5; // x1
int m_objectID; // w0
GameObjectType m_objectType; // w0
_BOOL4 v8; // w23
cocos2d::CCSprite *m_colorSprite; // x0
ObjectToolbox *v10; // x0
char *v11; // x0
char *v12; // x0
cocos2d::CCSprite *v13; // x23
cocos2d::CCNode *v14; // x0
cocos2d::CCNode *v15; // x22
void (__fastcall *setScaleX)(cocos2d::CCSprite *__hidden, float); // x26
float v17; // s8
float v18; // s0
cocos2d::CCNode *v19; // x0
float (__fastcall *getScaleY)(cocos2d::CCNode *__hidden); // x1
void (__fastcall *setScaleY)(cocos2d::CCSprite *__hidden, float); // x22
float v22; // s8
float v23; // s0
ZLayer ObjectZLayer; // w26
bool m_shouldBlendBase; // w22
int ParentMode; // w0
cocos2d::CCNode *v27; // x22
void (__fastcall *addChild_0)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // x26
unsigned int ObjectZOrder; // w0
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22
const cocos2d::CCPoint *v31; // x0
void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x22
const cocos2d::ccColor3B *v33; // x0
cocos2d::CCSprite *v34; // x22
__int64 v35; // x2
void (__fastcall *v36)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x26
float v37; // s8
__int64 v38; // x0
void (__fastcall *v39)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x26
const cocos2d::ccColor3B *v40; // x0
void (__fastcall *setOpacity)(cocos2d::CCSprite *__hidden, GLubyte); // x26
int v42; // w0
cocos2d::CCSequence *v43; // x26
cocos2d::CCFadeTo *v44; // x0
cocos2d::CCAction *v45; // x0
char *p_m_fBrVertexMod; // x0
char *v47; // x19
unsigned int *v48; // x22
int v49; // w0
_BOOL4 hasUniqueCoin; // w24
const cocos2d::CCPoint *v51; // x0
cocos2d::CCParticleSystemQuad *v52; // x0
cocos2d::CCParticleSystemQuad *v53; // x25
cocos2d::CCNode *v54; // x22
char v55; // w0
char v56; // w1
void (__fastcall *v57)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25
const cocos2d::CCPoint *v58; // x0
cocos2d::CCNode *v59; // x22
void (__fastcall *v60)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25
const cocos2d::CCPoint *v61; // x0
GameObjectType v62; // w0
const char *v63; // x22
const char *v64; // x0
cocos2d::CCSprite *v65; // x21
void (__fastcall *setScale)(cocos2d::CCSprite *__hidden, float); // x24
cocos2d::CCNode *m_pParent; // x24
void (__fastcall *v68)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // x25
unsigned int v69; // w0
void (__fastcall *v70)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24
const cocos2d::CCPoint *v71; // x0
cocos2d::CCArray *v72; // x0
void (__fastcall *v73)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x23
const cocos2d::ccColor3B *v74; // x0
cocos2d::CCArray *v75; // x23
cocos2d::CCSpriteFrameCache *v76; // x24
cocos2d::CCString *v77; // x0
const char *CString; // x0
cocos2d::CCSpriteFrame *v79; // x0
cocos2d::CCSpriteFrameCache *v80; // x24
cocos2d::CCString *v81; // x0
const char *v82; // x0
cocos2d::CCSpriteFrame *v83; // x0
cocos2d::CCSpriteFrameCache *v84; // x24
cocos2d::CCString *v85; // x0
const char *v86; // x0
cocos2d::CCSpriteFrame *v87; // x0
cocos2d::CCSpriteFrameCache *v88; // x24
cocos2d::CCString *v89; // x0
const char *v90; // x0
cocos2d::CCSpriteFrame *v91; // x0
cocos2d::CCAnimation *v92; // x0
cocos2d::CCAnimate *v93; // x0
cocos2d::CCRepeatForever *v94; // x0
cocos2d::CCSprite *v95; // x21
const cocos2d::CCSize *v96; // x0
cocos2d::CCSprite *v97; // x26
cocos2d::CCSprite *v98; // x0
void (__fastcall *v99)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x23
__int64 v100; // x0
cocos2d::CCSprite *v101; // x25
cocos2d::CCNode *v102; // x0
void (__fastcall *v103)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x23
__int64 v104; // x0
void (__fastcall *v105)(cocos2d::CCSprite *__hidden, float); // x23
void (__fastcall *v106)(cocos2d::CCSprite *__hidden, float); // x23
cocos2d::CCNode *v107; // x23
void (__fastcall *v108)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // x24
unsigned int v109; // w0
int v110; // w28
int v111; // w24
const cocos2d::CCPoint *v112; // x0
const cocos2d::ccColor3B *v113; // x0
unsigned __int8 *v114; // x0
unsigned __int8 *v115; // x0
void (__fastcall *v116)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x9
void (__fastcall *v117)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x3
cocos2d::CCTintTo *v118; // x0
cocos2d::CCTintTo *v119; // x0
cocos2d::CCFadeTo *v120; // x0
cocos2d::CCAction *v121; // x0
const char *v122; // x23
cocos2d::CCNode *v123; // x27
cocos2d::CCArray *v124; // x22
cocos2d::CCString *v125; // x0
const char *v126; // x0
cocos2d::CCSpriteFrame *v127; // x0
cocos2d::CCString *v128; // x0
const char *v129; // x0
cocos2d::CCSpriteFrame *v130; // x0
cocos2d::CCString *v131; // x0
const char *v132; // x0
cocos2d::CCSpriteFrame *v133; // x0
cocos2d::CCString *v134; // x0
const char *v135; // x0
cocos2d::CCSpriteFrame *v136; // x0
cocos2d::CCAnimation *v137; // x0
cocos2d::CCAnimate *v138; // x22
cocos2d::CCRepeatForever *v139; // x1
cocos2d::CCSequence *v140; // x22
cocos2d::CCFadeTo *v141; // x0
cocos2d::CCAction *v142; // x0
void (__fastcall *setStartColor)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // x26
GLfloat a; // w2
void (__fastcall *setEndColor)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // x26
GLfloat v146; // w2
const cocos2d::CCPoint *v147; // x0
unsigned int *v148; // x1
int v149; // w2
unsigned int *p_m_fTextureTop; // x1
int m_fTextureTop_low; // w2
unsigned __int8 v152; // [xsp+88h] [xbp+78h]
unsigned __int8 v153; // [xsp+90h] [xbp+80h]
unsigned __int8 v154; // [xsp+98h] [xbp+88h]
unsigned __int8 v155; // [xsp+A8h] [xbp+98h]
unsigned __int8 v156; // [xsp+B0h] [xbp+A0h]
cocos2d::CCSpriteFrameCache *v157; // [xsp+B8h] [xbp+A8h]
cocos2d::CCSpriteFrameCache *v158; // [xsp+B8h] [xbp+A8h]
cocos2d::CCSpriteFrameCache *v159; // [xsp+B8h] [xbp+A8h]
cocos2d::CCSpriteFrameCache *v160; // [xsp+B8h] [xbp+A8h]
cocos2d::CCSpriteFrameCache *v161; // [xsp+B8h] [xbp+A8h]
cocos2d::CCSpriteFrameCache *v162; // [xsp+B8h] [xbp+A8h]
float v163; // [xsp+CCh] [xbp+BCh] BYREF
float v164; // [xsp+D0h] [xbp+C0h] BYREF
cocos2d::CCSprite *v165; // [xsp+D8h] [xbp+C8h] BYREF
cocos2d::CCSprite *v166; // [xsp+E0h] [xbp+D0h] BYREF
char *v167; // [xsp+E8h] [xbp+D8h] BYREF
float v168; // [xsp+F0h] [xbp+E0h]
GLfloat v169; // [xsp+F4h] [xbp+E4h]
cocos2d::CCPoint v170; // 0:s0.4,4:s1.4
cocos2d::CCPoint v171; // 0:s0.4,4:s1.4
if ( !a2 )
return;
v4 = a1->getOpacity(a1);
v5 = (char *)&dword_0 + 1;
if ( (float)v4 <= 0.0 )
{
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite )
LODWORD(v5) = m_colorSprite->getOpacity(m_colorSprite) != 0;
else
LODWORD(v5) = 0;
}
m_objectID = a1->m_objectID;
if ( m_objectID == 143 )
{
v147 = a1->getPosition(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v147);
GJBaseGameLayer::spawnParticle(a2, "glassDestroy01.plist", 0, kCCPositionTypeGrouped, v171);
return;
}
if ( m_objectID != 1614 )
{
m_objectType = a1->m_objectType;
v8 = m_objectType == (Collectible|0x1);
if ( m_objectType != (Collectible|0x1) && m_objectType != SecretCoin )
{
if ( m_objectType == Collectible && a1->m_isInvisible < (unsigned int)v5 )
{
v10 = ObjectToolbox::sharedState();
v11 = (char *)ObjectToolbox::intKeyToFrame(v10, a1->m_objectID);
sub_D153B8((int)&v165, v11);
sub_D18D28(&v167);
GameObject::getColorFrame(&v167, (__int64)&v166);
v12 = v167 - 24;
if ( v167 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v148 = (unsigned int *)(v167 - 8);
do
v149 = __ldaxr(v148);
while ( __stlxr(v149 - 1, v148) );
}
else
{
v149 = *((_DWORD *)v167 - 2);
*((_DWORD *)v167 - 2) = v149 - 1;
}
if ( v149 <= 0 )
operator delete(v12);
}
v13 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v165);
v13->setOpacity(v13, v4);
v14 = a1->getChildByTag(a1, 1);
v15 = v14;
if ( v14 )
{
setScaleX = v13->setScaleX;
v17 = v14->getScaleX(v14);
v18 = a1->getScaleX(a1);
setScaleX(v13, v17 * v18);
v19 = v15;
getScaleY = v15->getScaleY;
setScaleY = v13->setScaleY;
v22 = getScaleY(v19);
v23 = a1->getScaleY(a1);
setScaleY(v13, v22 * v23);
}
ObjectZLayer = GameObject::getObjectZLayer(a1);
m_shouldBlendBase = a1->m_shouldBlendBase;
ParentMode = GameObject::getParentMode(a1);
v27 = GameObject::parentForZLayer(a1, ObjectZLayer, m_shouldBlendBase, ParentMode);
addChild_0 = v27->addChild_0;
ObjectZOrder = GameObject::getObjectZOrder(a1);
addChild_0(v27, v13, ObjectZOrder);
setPosition = v13->setPosition;
v31 = a1->getPosition(a1);
setPosition(v13, v31);
setColor = v13->setColor;
v33 = a1->getColor(a1);
setColor(v13, v33);
if ( a1->m_colorSprite )
{
v34 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v166);
if ( a1->m_colorZLayerRelated )
v35 = 1;
else
v35 = 0xFFFFFFFFLL;
v13->addChild_0(v13, v34, v35);
v36 = v34->setPosition;
v37 = v13->getContentSize(v13)->width * 0.5;
v38 = (__int64)v13->getContentSize(v13);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v37, *(float *)(v38 + 4) * 0.5);
v36(v34, (const cocos2d::CCPoint *)&v167);
v39 = v34->setColor;
v40 = a1->m_colorSprite->getColor(a1->m_colorSprite);
v39(v34, v40);
setOpacity = v34->setOpacity;
v42 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_colorSprite->getOpacity)(a1->m_colorSprite);
setOpacity(v34, v42);
v43 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.45);
v44 = cocos2d::CCFadeTo::create(0.15, 0);
v45 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v43, v44, 0);
cocos2d::CCNode::runAction(v34, v45);
}
GJBaseGameLayer::generatePickupAnimRandVal(a2, a1, &v163, &v164);
GameObject::playPickupAnimation(a1, v13, 20.0, 30.0, 65.0, 115.0, 10.0, 0.6, 0.45, 0.15, 1u, v163, v164);
p_m_fBrVertexMod = (char *)&v166[-1].m_fBrVertexMod;
if ( (__int64 *)&v166[-1].m_fBrVertexMod != &qword_124B6B0 )
{
if ( &pthread_create )
{
p_m_fTextureTop = (unsigned int *)&v166[-1].m_fTextureTop;
do
m_fTextureTop_low = __ldaxr(p_m_fTextureTop);
while ( __stlxr(m_fTextureTop_low - 1, p_m_fTextureTop) );
}
else
{
m_fTextureTop_low = LODWORD(v166[-1].m_fTextureTop);
LODWORD(v166[-1].m_fTextureTop) = m_fTextureTop_low - 1;
}
if ( m_fTextureTop_low <= 0 )
operator delete(p_m_fBrVertexMod);
}
v47 = (char *)&v165[-1].m_fBrVertexMod;
if ( (__int64 *)&v165[-1].m_fBrVertexMod != &qword_124B6B0 )
{
if ( &pthread_create )
{
v48 = (unsigned int *)&v165[-1].m_fTextureTop;
do
v49 = __ldaxr(v48);
while ( __stlxr(v49 - 1, v48) );
}
else
{
v49 = LODWORD(v165[-1].m_fTextureTop);
LODWORD(v165[-1].m_fTextureTop) = v49 - 1;
}
if ( v49 <= 0 )
operator delete(v47);
}
}
return;
}
hasUniqueCoin = GJBaseGameLayer::hasUniqueCoin(a2, (EffectGameObject *)a1);
v51 = a1->getPosition(a1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, v51);
v52 = GJBaseGameLayer::spawnParticle(a2, "coinPickupEffect.plist", 0, kCCPositionTypeGrouped, v170);
v53 = v52;
if ( v52 && v8 )
{
setStartColor = v52->setStartColor;
a = v52->getStartColor(v52)->a;
LODWORD(v167) = 1.0;
HIDWORD(v167) = 1.0;
v168 = 1.0;
v169 = a;
setStartColor(v53, (const cocos2d::ccColor4F *)&v167);
setEndColor = v53->setEndColor;
v146 = v53->getEndColor(v53)->a;
LODWORD(v167) = 0.5;
HIDWORD(v167) = 0.5;
v168 = 0.5;
v169 = v146;
setEndColor(v53, (const cocos2d::ccColor4F *)&v167);
v54 = (cocos2d::CCNode *)CCCircleWave::create(nullptr, 25.0, 5.0, 0.3, 0);
}
else
{
v54 = (cocos2d::CCNode *)CCCircleWave::create(nullptr, 25.0, 5.0, 0.3, 0);
if ( !v8 )
{
v55 = 0;
v56 = -1;
LABEL_31:
LOBYTE(v54[1].m_uReference) = v56;
BYTE2(v54[1].m_uReference) = v55;
BYTE1(v54[1].m_uReference) = -56;
v57 = v54->setPosition;
v58 = a1->getPosition(a1);
v57(v54, v58);
a2->m_objectLayer->addChild_0(a2->m_objectLayer, v54, 0);
v59 = CCCircleWave::create(5.0, 60.0, 0.3, 0);
LOBYTE(v59[1].m_uReference) = -1;
BYTE1(v59[1].m_uReference) = -1;
BYTE2(v59[1].m_uReference) = -v8;
v60 = v59->setPosition;
v61 = a1->getPosition(a1);
v60(v59, v61);
a2->m_objectLayer->addChild_0(a2->m_objectLayer, v59, 0);
v62 = a1->m_objectType;
v59[1].m_uIndexInArray = (unsigned int)&dword_0 + 1;
v59[1].m_uUnknown = 4;
if ( v62 == (Collectible|0x1) )
{
if ( hasUniqueCoin )
v63 = "secretCoin_2_b";
else
v63 = "secretCoin_2";
v64 = "secretCoin_2_01_001.png";
}
else
{
if ( hasUniqueCoin )
v63 = "secretCoin_b";
else
v63 = "secretCoin";
v64 = "secretCoin_01_001.png";
}
v65 = cocos2d::CCSprite::createWithSpriteFrameName(v64);
setScale = v65->setScale;
a1->getScaleX(a1);
((void (__fastcall *)(cocos2d::CCSprite *))setScale)(v65);
m_pParent = a1->m_pParent;
if ( m_pParent )
{
v68 = m_pParent->addChild_0;
v69 = GameObject::getObjectZOrder(a1);
v68(m_pParent, v65, v69);
}
v70 = v65->setPosition;
v71 = a1->getPosition(a1);
v72 = (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCSprite *, const cocos2d::CCPoint *))v70)(v65, v71);
if ( v8 )
{
v73 = v65->setColor;
v74 = a1->getColor(a1);
v72 = (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCSprite *, const cocos2d::ccColor3B *))v73)(
v65,
v74);
}
v75 = (cocos2d::CCArray *)cocos2d::CCArray::create(v72);
v76 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v77 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_001.png", v63);
CString = cocos2d::CCString::getCString(v77);
v79 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v76, CString);
cocos2d::CCArray::addObject(v75, v79);
v80 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v81 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_002.png", v63);
v82 = cocos2d::CCString::getCString(v81);
v83 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v80, v82);
cocos2d::CCArray::addObject(v75, v83);
v84 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v85 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_003.png", v63);
v86 = cocos2d::CCString::getCString(v85);
v87 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v84, v86);
cocos2d::CCArray::addObject(v75, v87);
v88 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v89 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_004.png", v63);
v90 = cocos2d::CCString::getCString(v89);
v91 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v88, v90);
cocos2d::CCArray::addObject(v75, v91);
v92 = cocos2d::CCAnimation::createWithSpriteFrames(v75, 0.05);
v93 = cocos2d::CCAnimate::create(v92);
v94 = cocos2d::CCRepeatForever::create(v93);
cocos2d::CCNode::runAction(v65, v94);
GameObject::playPickupAnimation(a1, v65, 1.0, 1.0, 0.0, 0.0);
return;
}
}
v55 = -56;
v56 = -56;
goto LABEL_31;
}
if ( a1->m_isInvisible < (unsigned int)v5 )
{
v95 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_001.png");
v95->setOpacity(v95, v4);
v96 = v95->getContentSize(v95);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v166, v96);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v167, *(float *)&v166 * 0.5, *((float *)&v166 + 1) * 0.5);
v97 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_color_001.png");
v95->addChild_0(v95, v97, 1);
v97->setOpacity(v97, v4);
v97->setPosition(v97, (const cocos2d::CCPoint *)&v167);
v98 = a1->m_colorSprite;
if ( v98 )
{
v99 = v97->setColor;
v100 = (__int64)v98->getColor(v98);
v99(v97, (const cocos2d::ccColor3B *)v100);
}
v101 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_highlight_001.png");
v95->addChild_0(v95, v101, 2);
v101->setPosition(v101, (const cocos2d::CCPoint *)&v167);
v101->setOpacity(v101, v4);
v102 = a1->getChildByTag(a1, 2);
if ( v102 )
{
v103 = v101->setColor;
v104 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v102->__vftable[1].encodeWithCoder)(v102);
v103(v101, (const cocos2d::ccColor3B *)v104);
}
v105 = v95->setScaleX;
a1->getScaleX(a1);
((void (__fastcall *)(cocos2d::CCSprite *))v105)(v95);
v106 = v95->setScaleY;
a1->getScaleY(a1);
((void (__fastcall *)(cocos2d::CCSprite *))v106)(v95);
v107 = a1->m_pParent;
if ( v107 )
{
v108 = v107->addChild_0;
v109 = GameObject::getObjectZOrder(a1);
v108(v107, v95, v109);
}
v110 = 1;
v157 = (cocos2d::CCSpriteFrameCache *)v95->setPosition;
v111 = 0;
v112 = a1->getPosition(a1);
((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::CCPoint *))v157)(v95, v112);
v158 = (cocos2d::CCSpriteFrameCache *)v95->setColor;
v113 = a1->getColor(a1);
((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::ccColor3B *))v158)(v95, v113);
v114 = (unsigned __int8 *)v95->getColor(v95);
v152 = *v114;
v153 = v114[1];
v154 = v114[2];
v115 = (unsigned __int8 *)v97->getColor(v97);
v116 = v95->setColor;
v155 = *v115;
v156 = v115[1];
LOBYTE(v158) = v115[2];
LOWORD(v165) = -1;
BYTE2(v165) = -56;
v116(v95, (const cocos2d::ccColor3B *)&v165);
v117 = v97->setColor;
LOWORD(v165) = -1;
BYTE2(v165) = -56;
v117(v97, (const cocos2d::ccColor3B *)&v165);
v101->setOpacity(v101, 0);
v118 = cocos2d::CCTintTo::create(0.3, v152, v153, v154);
cocos2d::CCNode::runAction(v95, v118);
v119 = cocos2d::CCTintTo::create(0.3, v155, v156, (unsigned __int8)v158);
cocos2d::CCNode::runAction(v97, v119);
v120 = cocos2d::CCFadeTo::create(0.3, v4);
cocos2d::CCNode::runAction(v101, v120);
v121 = (cocos2d::CCAction *)"highlight_";
while ( 1 )
{
if ( v111 )
{
if ( v111 == 1 )
{
v123 = v97;
v122 = "color_";
}
else
{
v122 = "highlight_";
v123 = v101;
}
}
else
{
v123 = v95;
v122 = &byte_F288A0;
}
v124 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)v121);
v159 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v125 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"smallCoin_01_%s001.png",
v122);
v126 = cocos2d::CCString::getCString(v125);
v127 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v159, v126);
cocos2d::CCArray::addObject(v124, v127);
v160 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v128 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"smallCoin_02_%s001.png",
v122);
v129 = cocos2d::CCString::getCString(v128);
v130 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v160, v129);
cocos2d::CCArray::addObject(v124, v130);
v161 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v131 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"smallCoin_03_%s001.png",
v122);
v132 = cocos2d::CCString::getCString(v131);
v133 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v161, v132);
cocos2d::CCArray::addObject(v124, v133);
v162 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v134 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"smallCoin_04_%s001.png",
v122);
v135 = cocos2d::CCString::getCString(v134);
v136 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v162, v135);
cocos2d::CCArray::addObject(v124, v136);
v137 = cocos2d::CCAnimation::createWithSpriteFrames(v124, 0.05);
v138 = cocos2d::CCAnimate::create(v137);
v139 = cocos2d::CCRepeatForever::create(v138);
if ( v111 )
{
BYTE4(v138[1].__vftable) = 1;
cocos2d::CCNode::runAction(v123, v139);
v140 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.3);
v141 = cocos2d::CCFadeTo::create(0.3, 0);
v142 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v140, v141, 0);
v121 = cocos2d::CCNode::runAction(v123, v142);
if ( v110 == 3 )
{
GameObject::playPickupAnimation(a1, v95, 0.6, 0.8, 0.0, 0.0);
return;
}
}
else
{
BYTE5(v138[1].__vftable) = 1;
v121 = cocos2d::CCNode::runAction(v123, v139);
}
++v111;
++v110;
}
}
}