// // GameObject::playDestroyObjectAnim from 0x10025e530 to 0x10025f54e (4126 bytes) // // 1 xrefs: // > GJBaseGameLayer::destroyObject @ 0x1001289c5 // // 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 __fastcall GameObject::playDestroyObjectAnim(GameObject *a1, GJBaseGameLayer *a2) { double v2; // xmm0_8 unsigned __int8 v4; // r12 bool v5; // al int m_objectID; // ecx cocos2d::CCSprite *v7; // rdi cocos2d::CCPoint v8; // xmm0_8 GameObjectType m_objectType; // r13d cocos2d::CCPoint v10; // xmm0_8 cocos2d::CCParticleSystemQuad *v11; // r12 CCCircleWave *v12; // r12 int v13; // eax cocos2d::CCSprite *v14; // r14 unsigned int v15; // r13d __int64 v16; // rax cocos2d::CCSprite *v17; // r12 cocos2d::CCSprite *m_colorSprite; // rdi __int64 v19; // rax cocos2d::CCSprite *v20; // r15 __int64 v21; // rax __int64 v22; // rax cocos2d::CCNode *m_pParent; // r15 unsigned int ObjectZOrder; // eax __int64 v25; // rax __int64 v26; // rax unsigned __int8 *v27; // rax unsigned __int8 v28; // r13 unsigned __int8 *v29; // rax cocos2d::CCNode *v30; // r15 cocos2d::CCTintTo *v31; // rax cocos2d::CCTintTo *v32; // rax cocos2d::CCFadeTo *v33; // rsi cocos2d::CCArray *v34; // r13 cocos2d::CCSpriteFrameCache *v35; // r12 cocos2d::CCString *v36; // rax const char *CString; // rax cocos2d::CCSpriteFrame *v38; // rax cocos2d::CCSpriteFrameCache *v39; // r12 cocos2d::CCString *v40; // rax const char *v41; // rax cocos2d::CCSpriteFrame *v42; // rax cocos2d::CCSpriteFrameCache *v43; // r12 cocos2d::CCString *v44; // rax const char *v45; // rax cocos2d::CCSpriteFrame *v46; // rax cocos2d::CCSpriteFrameCache *v47; // r12 cocos2d::CCString *v48; // rax const char *v49; // rax cocos2d::CCSpriteFrame *v50; // rax cocos2d::CCAnimation *v51; // rax cocos2d::CCAnimate *v52; // r15 cocos2d::CCRepeatForever *v53; // rax cocos2d::CCRepeatForever *v54; // rsi cocos2d::CCArray *v55; // r13 cocos2d::CCSpriteFrameCache *v56; // r12 cocos2d::CCString *v57; // rax const char *v58; // rax cocos2d::CCSpriteFrame *v59; // rax cocos2d::CCSpriteFrameCache *v60; // r12 cocos2d::CCString *v61; // rax const char *v62; // rax cocos2d::CCSpriteFrame *v63; // rax cocos2d::CCSpriteFrameCache *v64; // r12 cocos2d::CCString *v65; // rax const char *v66; // rax cocos2d::CCSpriteFrame *v67; // rax cocos2d::CCSpriteFrameCache *v68; // r12 cocos2d::CCString *v69; // rax const char *v70; // rax cocos2d::CCSpriteFrame *v71; // rax cocos2d::CCAnimation *v72; // rax cocos2d::CCAnimate *v73; // r15 cocos2d::CCRepeatForever *v74; // rax unsigned int v75; // eax int v76; // ecx int v77; // r8d int v78; // r9d cocos2d::CCAction *v79; // rsi cocos2d::CCArray *v80; // r12 cocos2d::CCSpriteFrameCache *v81; // r13 cocos2d::CCString *v82; // rax const char *v83; // rax cocos2d::CCSpriteFrame *v84; // rax cocos2d::CCSpriteFrameCache *v85; // r13 cocos2d::CCString *v86; // rax const char *v87; // rax cocos2d::CCSpriteFrame *v88; // rax cocos2d::CCSpriteFrameCache *v89; // r13 cocos2d::CCString *v90; // rax const char *v91; // rax cocos2d::CCSpriteFrame *v92; // rax cocos2d::CCSpriteFrameCache *v93; // r13 cocos2d::CCString *v94; // rax const char *v95; // rax cocos2d::CCSpriteFrame *v96; // rax cocos2d::CCAnimation *v97; // rax cocos2d::CCAnimate *v98; // r15 cocos2d::CCRepeatForever *v99; // rax cocos2d::CCNode *v100; // r12 unsigned int v101; // eax int v102; // ecx int v103; // r8d int v104; // r9d cocos2d::CCAction *v105; // rax ObjectToolbox *v106; // rax size_t v107; // rax size_t v108; // r15 __int8 *v109; // rax __int64 v110; // rax CCCircleWave *v111; // r12 __int64 v112; // rax const char *v113; // rdi cocos2d::CCSprite *v114; // r14 cocos2d::CCNode *v115; // r12 unsigned int v116; // eax cocos2d::CCSprite *v117; // rdi __int64 v118; // rsi cocos2d::CCArray *v119; // r12 cocos2d::CCSpriteFrameCache *v120; // r13 cocos2d::CCString *v121; // rax const char *v122; // rax cocos2d::CCSpriteFrame *v123; // rax cocos2d::CCSpriteFrameCache *v124; // r13 cocos2d::CCString *v125; // rax const char *v126; // rax cocos2d::CCSpriteFrame *v127; // rax cocos2d::CCSpriteFrameCache *v128; // r13 cocos2d::CCString *v129; // rax const char *v130; // rax cocos2d::CCSpriteFrame *v131; // rax cocos2d::CCSpriteFrameCache *v132; // r13 cocos2d::CCString *v133; // rax const char *v134; // rax cocos2d::CCSpriteFrame *v135; // rax cocos2d::CCAnimation *v136; // rax cocos2d::CCAnimate *v137; // rax cocos2d::CCRepeatForever *v138; // rax size_t v139; // r13 __int8 *v140; // r13 const char *v141; // rdi cocos2d::CCSprite *v142; // r15 __int64 v143; // r12 float v144; // xmm0_4 double v145; // xmm1_8 float v146; // xmm0_4 double v147; // xmm1_8 ZLayer ObjectZLayer; // r12d bool m_shouldBlendBase; // r13 int ParentMode; // eax cocos2d::CCNode *v151; // r12 unsigned int v152; // eax __int64 v153; // rax __int64 v154; // rax const char *v155; // rdi cocos2d::CCSprite *v156; // r12 __int64 v157; // rax __int64 v158; // rax unsigned __int8 v159; // al unsigned int v160; // r13d unsigned int v161; // eax int v162; // ecx int v163; // r8d int v164; // r9d cocos2d::CCAction *v165; // rax char v166; // [rsp+0h] [rbp-C0h] char v167; // [rsp+0h] [rbp-C0h] char v168; // [rsp+0h] [rbp-C0h] char v169; // [rsp+0h] [rbp-C0h] char v170; // [rsp+0h] [rbp-C0h] char v171; // [rsp+0h] [rbp-C0h] char v172; // [rsp+0h] [rbp-C0h] char v173; // [rsp+0h] [rbp-C0h] char v174; // [rsp+0h] [rbp-C0h] char v175; // [rsp+0h] [rbp-C0h] char v176; // [rsp+0h] [rbp-C0h] char v177; // [rsp+0h] [rbp-C0h] char v178; // [rsp+0h] [rbp-C0h] char v179; // [rsp+0h] [rbp-C0h] char v180; // [rsp+0h] [rbp-C0h] __m128 v181; // [rsp+10h] [rbp-B0h] BYREF void *__p; // [rsp+20h] [rbp-A0h] cocos2d::CCSprite *v183; // [rsp+30h] [rbp-90h] char v184; // [rsp+38h] [rbp-88h] BYREF char v185; // [rsp+39h] [rbp-87h] BYREF void *v186; // [rsp+48h] [rbp-78h] float v187; // [rsp+54h] [rbp-6Ch] BYREF unsigned int v188; // [rsp+58h] [rbp-68h] int v189; // [rsp+5Ch] [rbp-64h] int v190; // [rsp+60h] [rbp-60h] int v191; // [rsp+64h] [rbp-5Ch] int v192; // [rsp+68h] [rbp-58h] int v193; // [rsp+6Ch] [rbp-54h] __m128 __dst; // [rsp+70h] [rbp-50h] BYREF void *v195; // [rsp+80h] [rbp-40h] float v196; // [rsp+88h] [rbp-38h] BYREF void *__src; // [rsp+90h] [rbp-30h] if ( !a2 ) return; v4 = ((__int64 (__fastcall *)(GameObject *))a1->getOpacity)(a1); if ( v4 ) { v5 = 0; m_objectID = a1->m_objectID; if ( m_objectID == 1614 ) { LABEL_15: if ( !a1->m_isInvisible && !v5 ) { v14 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_001.png"); v15 = v4; ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v14->setOpacity)(v14, v4); v16 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v14->getContentSize)(v14); sub_10028CFC0(&__dst, v16); sub_10028CBE0(&v184, __dst.f32[0] * 0.5, 0.5 * __dst.f32[1]); v17 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_color_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v14->addChild_0)(v14, v17, 1); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v17->setOpacity)(v17, v15); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v17->setPosition)(v17, &v184); m_colorSprite = a1->m_colorSprite; if ( m_colorSprite ) { v19 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))m_colorSprite->getColor)(m_colorSprite); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v17->setColor)(v17, v19); } v20 = cocos2d::CCSprite::createWithSpriteFrameName("smallCoin_01_highlight_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v14->addChild_0)(v14, v20, 2); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v20->setPosition)(v20, &v184); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v20->setOpacity)(v20, v15); v21 = ((__int64 (__fastcall *)(GameObject *, __int64))a1->getChildByTag)(a1, 2); if ( v21 ) { v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 928LL))(v21); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v20->setColor)(v20, v22); } v188 = v15; v183 = v17; __src = v20; ((void (__fastcall *)(GameObject *))a1->getScaleX)(a1); ((void (__fastcall *)(cocos2d::CCSprite *))v14->setScaleX)(v14); ((void (__fastcall *)(GameObject *))a1->getScaleY)(a1); ((void (__fastcall *)(cocos2d::CCSprite *))v14->setScaleY)(v14); m_pParent = a1->m_pParent; if ( m_pParent ) { ObjectZOrder = GameObject::getObjectZOrder(a1); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, _QWORD))m_pParent->addChild_0)( m_pParent, v14, ObjectZOrder); } v25 = ((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v14->setPosition)(v14, v25); v26 = ((__int64 (__fastcall *)(GameObject *))a1->getColor)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v14->setColor)(v14, v26); v27 = (unsigned __int8 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v14->getColor)(v14); v192 = *v27; v193 = v27[1]; v28 = v27[2]; v29 = (unsigned __int8 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v183->getColor)(v183); v189 = *v29; v190 = v29[1]; v191 = v29[2]; BYTE2(v196) = -56; LOWORD(v196) = -1; ((void (__fastcall *)(cocos2d::CCSprite *, float *))v14->setColor)(v14, &v196); BYTE2(v196) = -56; LOWORD(v196) = -1; ((void (__fastcall *)(cocos2d::CCSprite *, float *))v183->setColor)(v183, &v196); v30 = (cocos2d::CCNode *)__src; (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)__src + 896LL))(__src, 0); v31 = cocos2d::CCTintTo::create(0.30000001, v192, v193, v28); cocos2d::CCNode::runAction(v14, v31); v32 = cocos2d::CCTintTo::create(0.30000001, v189, v190, v191); cocos2d::CCNode::runAction(v183, v32); v33 = cocos2d::CCFadeTo::create(0.30000001, v188); cocos2d::CCNode::runAction(v30, v33); v34 = (cocos2d::CCArray *)sub_10071F9E0(v30, v33); v35 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v36 = (cocos2d::CCString *)sub_1007AB580("smallCoin_01_%s001.png", v166); CString = cocos2d::CCString::getCString(v36); v38 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v35, CString); sub_10071FCD0(v34, v38); v39 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v40 = (cocos2d::CCString *)sub_1007AB580("smallCoin_02_%s001.png", v167); v41 = cocos2d::CCString::getCString(v40); v42 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v39, v41); sub_10071FCD0(v34, v42); v43 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v44 = (cocos2d::CCString *)sub_1007AB580("smallCoin_03_%s001.png", v168); v45 = cocos2d::CCString::getCString(v44); v46 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v43, v45); sub_10071FCD0(v34, v46); v47 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v48 = (cocos2d::CCString *)sub_1007AB580("smallCoin_04_%s001.png", v169); v49 = cocos2d::CCString::getCString(v48); v50 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v47, v49); sub_10071FCD0(v34, v50); v51 = cocos2d::CCAnimation::createWithSpriteFrames(v34, 0.050000001); v52 = cocos2d::CCAnimate::create(v51); v53 = cocos2d::CCRepeatForever::create(v52); BYTE5(v52[1].__vftable) = 1; v54 = v53; cocos2d::CCNode::runAction(v14, v53); v55 = (cocos2d::CCArray *)sub_10071F9E0(v14, v54); v56 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v57 = (cocos2d::CCString *)sub_1007AB580("smallCoin_01_%s001.png", v170); v58 = cocos2d::CCString::getCString(v57); v59 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v56, v58); sub_10071FCD0(v55, v59); v60 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v61 = (cocos2d::CCString *)sub_1007AB580("smallCoin_02_%s001.png", v171); v62 = cocos2d::CCString::getCString(v61); v63 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v60, v62); sub_10071FCD0(v55, v63); v64 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v65 = (cocos2d::CCString *)sub_1007AB580("smallCoin_03_%s001.png", v172); v66 = cocos2d::CCString::getCString(v65); v67 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v64, v66); sub_10071FCD0(v55, v67); v68 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v69 = (cocos2d::CCString *)sub_1007AB580("smallCoin_04_%s001.png", v173); v70 = cocos2d::CCString::getCString(v69); v71 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v68, v70); sub_10071FCD0(v55, v71); v72 = cocos2d::CCAnimation::createWithSpriteFrames(v55, 0.050000001); v73 = cocos2d::CCAnimate::create(v72); v74 = cocos2d::CCRepeatForever::create(v73); BYTE4(v73[1].__vftable) = 1; cocos2d::CCNode::runAction(v183, v74); LODWORD(v73) = (unsigned int)cocos2d::CCDelayTime::create(0.30000001); v75 = (unsigned int)cocos2d::CCFadeTo::create(0.30000001, 0); v79 = (cocos2d::CCAction *)sub_1003B5760((_DWORD)v73, v75, 0, v76, v77, v78); cocos2d::CCNode::runAction(v183, v79); v80 = (cocos2d::CCArray *)sub_10071F9E0(v183, v79); v81 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v82 = (cocos2d::CCString *)sub_1007AB580("smallCoin_01_%s001.png", v174); v83 = cocos2d::CCString::getCString(v82); v84 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v81, v83); sub_10071FCD0(v80, v84); v85 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v86 = (cocos2d::CCString *)sub_1007AB580("smallCoin_02_%s001.png", v175); v87 = cocos2d::CCString::getCString(v86); v88 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v85, v87); sub_10071FCD0(v80, v88); v89 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v90 = (cocos2d::CCString *)sub_1007AB580("smallCoin_03_%s001.png", v176); v91 = cocos2d::CCString::getCString(v90); v92 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v89, v91); sub_10071FCD0(v80, v92); v93 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v94 = (cocos2d::CCString *)sub_1007AB580("smallCoin_04_%s001.png", v177); v95 = cocos2d::CCString::getCString(v94); v96 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v93, v95); sub_10071FCD0(v80, v96); v97 = cocos2d::CCAnimation::createWithSpriteFrames(v80, 0.050000001); v98 = cocos2d::CCAnimate::create(v97); v99 = cocos2d::CCRepeatForever::create(v98); BYTE4(v98[1].__vftable) = 1; v100 = (cocos2d::CCNode *)__src; cocos2d::CCNode::runAction((cocos2d::CCNode *)__src, v99); LODWORD(v98) = (unsigned int)cocos2d::CCDelayTime::create(0.30000001); v101 = (unsigned int)cocos2d::CCFadeTo::create(0.30000001, 0); v105 = (cocos2d::CCAction *)sub_1003B5760((_DWORD)v98, v101, 0, v102, v103, v104); cocos2d::CCNode::runAction(v100, v105); GameObject::playPickupAnimation( a1, v14, 30.000002, 36.0, 54.000004, 108.00001, 12.0, 0.60000002, 0.40000001, 0.2, 0, 0.0, 0.0); } return; } } else { v7 = a1->m_colorSprite; if ( v7 ) { v5 = ((unsigned __int8 (__fastcall *)(cocos2d::CCSprite *))v7->getOpacity)(v7) == 0; m_objectID = a1->m_objectID; if ( m_objectID == 1614 ) goto LABEL_15; } else { v5 = 1; m_objectID = a1->m_objectID; if ( m_objectID == 1614 ) goto LABEL_15; } } if ( m_objectID == 143 ) { ((void (__fastcall *)(GameObject *))a1->getPosition)(a1); *(double *)&v8 = sub_10028CC60(&__dst); GJBaseGameLayer::spawnParticle(a2, "glassDestroy01.plist", 0, kCCPositionTypeGrouped, v8); return; } m_objectType = a1->m_objectType; if ( m_objectType == (Collectible|0x1) ) goto LABEL_12; if ( m_objectType != Collectible ) { if ( m_objectType != SecretCoin ) return; LABEL_12: LOBYTE(__src) = GJBaseGameLayer::hasUniqueCoin(a2, (EffectGameObject *)a1); ((void (__fastcall *)(GameObject *))a1->getPosition)(a1); *(double *)&v10 = sub_10028CC60(&__dst); v11 = GJBaseGameLayer::spawnParticle(a2, "coinPickupEffect.plist", 0, kCCPositionTypeGrouped, v10); if ( m_objectType == (Collectible|0x1) && v11 != nullptr ) { __dst = _mm_movelh_ps( (__m128)xmmword_1008154E0, _mm_insert_ps( (__m128)xmmword_1008165D0, (__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v11->getStartColor)(v11) + 12), 16)); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __m128 *))v11->setStartColor)(v11, &__dst); __dst = _mm_movelh_ps( (__m128)xmmword_100816970, _mm_insert_ps( (__m128)xmmword_1008182B0, (__m128)*(unsigned int *)(((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v11->getEndColor)(v11) + 12), 16)); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __m128 *))v11->setEndColor)(v11, &__dst); v12 = CCCircleWave::create(25.0, 5.0, 0.30000001, 0, 0); v13 = 13158600; } else { v12 = CCCircleWave::create(25.0, 5.0, 0.30000001, 0, 0); v13 = 51455; if ( m_objectType == (Collectible|0x1) ) v13 = -3618616; } *(_WORD *)&v12->m_color.r = v13; v12->m_color.b = BYTE2(v13); v110 = ((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v12->setPosition)(v12, v110); ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a2->m_objectLayer->addChild_0)( a2->m_objectLayer, v12, 0); v111 = CCCircleWave::create_1(5.0, 60.0, 0.30000001, 0); v111->m_color.b = (unsigned int)-(m_objectType == (Collectible|0x1)) >> 16; *(_WORD *)&v111->m_color.r = -1; v112 = ((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v111->setPosition)(v111, v112); ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a2->m_objectLayer->addChild_0)( a2->m_objectLayer, v111, 0); *(_QWORD *)&v111->m_circleMode = 0x400000001LL; v113 = "secretCoin_01_001.png"; if ( a1->m_objectType == (Collectible|0x1) ) v113 = "secretCoin_2_01_001.png"; v114 = cocos2d::CCSprite::createWithSpriteFrameName(v113); ((void (__fastcall *)(GameObject *))a1->getScaleX)(a1); ((void (__fastcall *)(cocos2d::CCSprite *))v114->setScale)(v114); v115 = a1->m_pParent; if ( v115 ) { v116 = GameObject::getObjectZOrder(a1); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, _QWORD))v115->addChild_0)(v115, v114, v116); } v117 = v114; v118 = ((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v114->setPosition)(v114, v118); if ( m_objectType == (Collectible|0x1) ) { v117 = v114; v118 = ((__int64 (__fastcall *)(GameObject *))a1->getColor)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v114->setColor)(v114, v118); } v119 = (cocos2d::CCArray *)sub_10071F9E0(v117, v118); v120 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v121 = (cocos2d::CCString *)sub_1007AB580("%s_01_001.png", v166); v122 = cocos2d::CCString::getCString(v121); v123 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v120, v122); sub_10071FCD0(v119, v123); v124 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v125 = (cocos2d::CCString *)sub_1007AB580("%s_01_002.png", v178); v126 = cocos2d::CCString::getCString(v125); v127 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v124, v126); sub_10071FCD0(v119, v127); v128 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v129 = (cocos2d::CCString *)sub_1007AB580("%s_01_003.png", v179); v130 = cocos2d::CCString::getCString(v129); v131 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v128, v130); sub_10071FCD0(v119, v131); v132 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v133 = (cocos2d::CCString *)sub_1007AB580("%s_01_004.png", v180); v134 = cocos2d::CCString::getCString(v133); v135 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v132, v134); sub_10071FCD0(v119, v135); v136 = cocos2d::CCAnimation::createWithSpriteFrames(v119, 0.050000001); v137 = cocos2d::CCAnimate::create(v136); v138 = cocos2d::CCRepeatForever::create(v137); cocos2d::CCNode::runAction(v114, v138); GameObject::playPickupAnimation(a1, v114, 50.0, 60.0, 90.0, 180.0, 20.0, 0.75, 0.5, 0.25, 0, 0.0, 0.0); return; } if ( a1->m_isInvisible || v5 ) return; v106 = ObjectToolbox::sharedState(); __src = (void *)ObjectToolbox::intKeyToFrame(v106, a1->m_objectID); v107 = strlen((const char *)__src); if ( v107 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v108 = v107; if ( v107 >= 0x17 ) { v139 = 26; if ( (v107 | 7) != 0x17 ) v139 = (v107 | 7) + 1; v109 = (__int8 *)operator new(v139); v195 = v109; __dst.i64[0] = v139 + 1; __dst.i64[1] = v108; } else { __dst.i8[0] = 2 * v107; v109 = &__dst.i8[1]; if ( !v108 ) goto LABEL_42; } v140 = v109; memmove(v109, __src, v108); v109 = v140; LABEL_42: v109[v108] = 0; if ( (__dst.i8[0] & 1) != 0 ) { sub_100006B70(&v181, v195, __dst.u64[1], v2); } else { __p = v195; v181 = __dst; } GameObject::getColorFrame(&v184, a1, &v181); if ( (v181.i8[0] & 1) != 0 ) operator delete(__p); if ( (__dst.i8[0] & 1) != 0 ) v141 = (const char *)v195; else v141 = &__dst.i8[1]; v142 = cocos2d::CCSprite::createWithSpriteFrameName(v141); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v142->setOpacity)(v142, v4); v143 = ((__int64 (__fastcall *)(GameObject *, __int64))a1->getChildByTag)(a1, 1); if ( v143 ) { LODWORD(__src) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v143 + 136LL))(v143); v144 = ((float (__fastcall *)(GameObject *))a1->getScaleX)(a1); *(_QWORD *)&v145 = (unsigned int)__src; *(float *)&v145 = *(float *)&__src * v144; ((void (__fastcall *)(cocos2d::CCSprite *, double))v142->setScaleX)(v142, v145); LODWORD(__src) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v143 + 152LL))(v143); v146 = ((float (__fastcall *)(GameObject *))a1->getScaleY)(a1); *(_QWORD *)&v147 = (unsigned int)__src; *(float *)&v147 = *(float *)&__src * v146; ((void (__fastcall *)(cocos2d::CCSprite *, double))v142->setScaleY)(v142, v147); } ObjectZLayer = GameObject::getObjectZLayer(a1); m_shouldBlendBase = a1->m_shouldBlendBase; ParentMode = GameObject::getParentMode(a1); v151 = GameObject::parentForZLayer(a1, ObjectZLayer, m_shouldBlendBase, ParentMode); v152 = GameObject::getObjectZOrder(a1); ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCSprite *, _QWORD))v151->addChild_0)(v151, v142, v152); v153 = ((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v142->setPosition)(v142, v153); v154 = ((__int64 (__fastcall *)(GameObject *))a1->getColor)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v142->setColor)(v142, v154); if ( a1->m_colorSprite ) { if ( (v184 & 1) != 0 ) v155 = (const char *)v186; else v155 = &v185; v156 = cocos2d::CCSprite::createWithSpriteFrameName(v155); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, _QWORD))v142->addChild_0)( v142, v156, a1->m_colorZLayerRelated ? 1 : -1); LODWORD(__src) = *(_DWORD *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v142->getContentSize)(v142); v157 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v142->getContentSize)(v142); sub_10028CBE0(&v196, *(float *)&__src * 0.5, 0.5 * *(float *)(v157 + 4)); ((void (__fastcall *)(cocos2d::CCSprite *, float *))v156->setPosition)(v156, &v196); v158 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_colorSprite->getColor)(a1->m_colorSprite); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v156->setColor)(v156, v158); v159 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_colorSprite->getOpacity)(a1->m_colorSprite); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v156->setOpacity)(v156, v159); v160 = (unsigned int)cocos2d::CCDelayTime::create(0.44999999); v161 = (unsigned int)cocos2d::CCFadeTo::create(0.15000001, 0); v165 = (cocos2d::CCAction *)sub_1003B5760(v160, v161, 0, v162, v163, v164); cocos2d::CCNode::runAction(v156, v165); } GJBaseGameLayer::generatePickupAnimRandVal(a2, a1, &v196, &v187); GameObject::playPickupAnimation( a1, v142, 20.0, 30.0, 65.0, 115.0, 10.0, 0.60000002, 0.44999999, 0.15000001, 1, v196, v187); if ( (v184 & 1) != 0 ) operator delete(v186); if ( (__dst.i8[0] & 1) != 0 ) operator delete(v195); }
GD Web Decomp Icon

GD Web Decomp

Raw Source