// // SecretLayer4::playCoinEffect from 0x1003b4c30 to 0x1003b5041 (1041 bytes) // // 0 xrefs: // // 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 SecretLayer4::playCoinEffect(SecretLayer4 *a1) { cocos2d::CCParticleSystemQuad *v2; // rbx CCCircleWave *v3; // rbx CCCircleWave *v4; // rbx cocos2d::CCSprite *v5; // rbx cocos2d::CCArray *v6; // r15 cocos2d::CCSpriteFrameCache *v7; // r13 cocos2d::CCString *v8; // rax const char *CString; // rax cocos2d::CCSpriteFrame *v10; // rax cocos2d::CCSpriteFrameCache *v11; // r13 cocos2d::CCString *v12; // rax const char *v13; // rax cocos2d::CCSpriteFrame *v14; // rax cocos2d::CCSpriteFrameCache *v15; // r13 cocos2d::CCString *v16; // rax const char *v17; // rax cocos2d::CCSpriteFrame *v18; // rax cocos2d::CCSpriteFrameCache *v19; // r13 cocos2d::CCString *v20; // rax const char *v21; // rax cocos2d::CCSpriteFrame *v22; // rax cocos2d::CCAnimation *v23; // rax cocos2d::CCAnimate *v24; // rax cocos2d::CCRepeatForever *v25; // rax int v26; // eax int v27; // r14d unsigned int v28; // eax int v29; // ecx int v30; // r8d int v31; // r9d cocos2d::CCAction *v32; // rax unsigned int v33; // r14d unsigned int v34; // eax int v35; // ecx int v36; // r8d int v37; // r9d cocos2d::CCAction *v38; // rax char v39; // [rsp+0h] [rbp-70h] char v40; // [rsp+0h] [rbp-70h] char v41; // [rsp+0h] [rbp-70h] char v42; // [rsp+0h] [rbp-70h] __int64 v43; // [rsp+4h] [rbp-6Ch] BYREF __int64 v44; // [rsp+Ch] [rbp-64h] BYREF __int64 v45; // [rsp+14h] [rbp-5Ch] BYREF double v46; // [rsp+1Ch] [rbp-54h] BYREF float v47[2]; // [rsp+24h] [rbp-4Ch] BYREF double v48; // [rsp+2Ch] [rbp-44h] BYREF float v49[2]; // [rsp+34h] [rbp-3Ch] BYREF float v50; // [rsp+3Ch] [rbp-34h] __int64 v51; // [rsp+40h] [rbp-30h] BYREF cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v47); sub_10028CBE0((float *)&v46, v47[0] * 0.5, (float)(v47[1] * 0.5) + 50.0); v2 = cocos2d::CCParticleSystemQuad::create("coinPickupEffect.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v2->setAutoRemoveOnFinish)(v2, 1); ((void (__fastcall *)(SecretLayer4 *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, v2, 1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double *))v2->setPosition)(v2, &v46); v3 = CCCircleWave::create(25.0, 5.0, 0.30000001, 0, 0); v3->m_color.b = 0; *(_WORD *)&v3->m_color.r = -14081; ((void (__fastcall *)(CCCircleWave *, double *))v3->setPosition)(v3, &v46); ((void (__fastcall *)(SecretLayer4 *, CCCircleWave *, _QWORD))a1->addChild_0)(a1, v3, 0); v4 = CCCircleWave::create_1(5.0, 60.0, 0.30000001, 0); v4->m_color.b = 0; *(_WORD *)&v4->m_color.r = -1; ((void (__fastcall *)(CCCircleWave *, double *))v4->setPosition)(v4, &v46); ((void (__fastcall *)(SecretLayer4 *, CCCircleWave *, _QWORD))a1->addChild_0)(a1, v4, 0); *(_QWORD *)&v4->m_circleMode = 0x400000001LL; v5 = cocos2d::CCSprite::createWithSpriteFrameName("secretCoin_01_001.png"); ((void (__fastcall *)(SecretLayer4 *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v5, 2); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v5->setPosition)(v5, &v46); v6 = (cocos2d::CCArray *)sub_10071F9E0(v5, &v46); v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v8 = (cocos2d::CCString *)sub_1007AB580("%s_01_001.png", v39); CString = cocos2d::CCString::getCString(v8); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, CString); sub_10071FCD0(v6, v10); v11 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v12 = (cocos2d::CCString *)sub_1007AB580("%s_01_002.png", v40); v13 = cocos2d::CCString::getCString(v12); v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, v13); sub_10071FCD0(v6, v14); v15 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v16 = (cocos2d::CCString *)sub_1007AB580("%s_01_003.png", v41); v17 = cocos2d::CCString::getCString(v16); v18 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v15, v17); sub_10071FCD0(v6, v18); v19 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v20 = (cocos2d::CCString *)sub_1007AB580("%s_01_004.png", v42); v21 = cocos2d::CCString::getCString(v20); v22 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v19, v21); sub_10071FCD0(v6, v22); v23 = cocos2d::CCAnimation::createWithSpriteFrames(v6, 0.050000001); v24 = cocos2d::CCAnimate::create(v23); v25 = cocos2d::CCRepeatForever::create(v24); cocos2d::CCNode::runAction(v5, v25); sub_10028CC60(&v51, &v46); v50 = *(float *)&v46; v26 = rand(); sub_10028CBE0( v49, (float)((float)((float)((float)((float)v26 * 4.6566129e-10) + (float)((float)v26 * 4.6566129e-10)) + -1.0) * 50.0) + v50, *((float *)&v51 + 1) + -60.0); sub_10028CC30(&v43); sub_10028CC30(&v44); sub_10028CC30(&v45); sub_10028CBE0((float *)&v48, *(float *)&v51, *((float *)&v51 + 1) + 90.0); sub_10028CC90(&v44, &v48); sub_10028CBE0((float *)&v48, v49[0], *((float *)&v51 + 1) + 180.0); sub_10028CC90(&v45, &v48); sub_10028CBE0((float *)&v48, v49[0], v49[1] + -20.0); sub_10028CC90(&v43, &v48); v27 = cocos2d::CCBezierTo::create(&v43, &v48, 0.75); v28 = (unsigned int)cocos2d::CCCallFunc::create(v5, (cocos2d::SEL_CallFunc)0x209uLL); v32 = (cocos2d::CCAction *)sub_1003B5760(v27, v28, 0, v29, v30, v31); cocos2d::CCNode::runAction(v5, v32); v33 = (unsigned int)cocos2d::CCDelayTime::create(0.5); v34 = (unsigned int)cocos2d::CCFadeOut::create(0.30000001); v38 = (cocos2d::CCAction *)sub_1003B5760(v33, v34, 0, v35, v36, v37); cocos2d::CCNode::runAction(v5, v38); }
GD Web Decomp Icon

GD Web Decomp

Raw Source