// // SecretLayer::playCoinEffect from 0x1003bee6c to 0x1003bf248 (988 bytes) // // 1 xrefs: // > SecretLayer::onSubmit @ 0x1003be288 // // 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 SecretLayer::playCoinEffect(SecretLayer *a1) { cocos2d::CCDirector *v2; // x0 __n128 v3; // q0 __n128 v4; // q1 cocos2d::CCParticleSystemQuad *v5; // x19 CCCircleWave *v6; // x19 CCCircleWave *v7; // x19 cocos2d::CCSprite *v8; // x19 cocos2d::CCArray *v9; // x20 cocos2d::CCSpriteFrameCache *v10; // x21 cocos2d::CCString *v11; // x0 const char *CString; // x0 cocos2d::CCSpriteFrameCache *v13; // x21 cocos2d::CCString *v14; // x0 const char *v15; // x0 cocos2d::CCSpriteFrameCache *v16; // x21 cocos2d::CCString *v17; // x0 const char *v18; // x0 cocos2d::CCSpriteFrameCache *v19; // x21 cocos2d::CCString *v20; // x0 const char *v21; // x0 cocos2d::CCAnimation *v22; // x0 cocos2d::CCAnimate *v23; // x0 cocos2d::CCRepeatForever *v24; // x0 __n128 v25; // q0 __n128 v26; // q1 __n128 v27; // q0 __n128 v28; // q1 __n128 v29; // q0 __n128 v30; // q1 __n128 v31; // q0 __n128 v32; // q1 cocos2d::CCFiniteTimeAction *v33; // x20 char v34; // w0 __int64 v35; // x1 __int64 v36; // x2 __int64 v37; // x3 __int64 v38; // x4 __int64 v39; // x5 __int64 v40; // x6 __int64 v41; // x7 cocos2d::CCSequence *v42; // x0 cocos2d::CCDelayTime *v43; // x20 char v44; // w0 __int64 v45; // x1 __int64 v46; // x2 __int64 v47; // x3 __int64 v48; // x4 __int64 v49; // x5 __int64 v50; // x6 __int64 v51; // x7 cocos2d::CCSequence *v52; // x0 double v53; // [xsp+10h] [xbp-80h] BYREF __int64 v54; // [xsp+18h] [xbp-78h] BYREF __int64 v55; // [xsp+20h] [xbp-70h] BYREF __int64 v56; // [xsp+28h] [xbp-68h] BYREF _DWORD v57[2]; // [xsp+30h] [xbp-60h] BYREF __int64 v58; // [xsp+38h] [xbp-58h] BYREF __int64 v59; // [xsp+40h] [xbp-50h] BYREF float v60; // [xsp+48h] [xbp-48h] float v61; // [xsp+4Ch] [xbp-44h] cocos2d::SEL_CallFunc v62; // 0:x1.16 v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2); v3.n128_f32[0] = v60 * 0.5; v4.n128_f32[0] = (float)(v61 * 0.5) + 50.0; sub_100022980(v3, v4, &v59); v5 = cocos2d::CCParticleSystemQuad::create("coinPickupEffect.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v5->setAutoRemoveOnFinish)(v5, 1); ((void (__fastcall *)(SecretLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, v5, 1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *))v5->setPosition)(v5, &v59); v6 = CCCircleWave::create(25.0, 5.0, 0.3, 0, 0); v6->m_color.b = 0; *(_WORD *)&v6->m_color.r = -14081; ((void (__fastcall *)(CCCircleWave *, __int64 *))v6->setPosition)(v6, &v59); ((void (__fastcall *)(SecretLayer *, CCCircleWave *, _QWORD))a1->addChild_0)(a1, v6, 0); v7 = CCCircleWave::create_1(5.0, 60.0, 0.3, 0); v7->m_color.b = 0; *(_WORD *)&v7->m_color.r = -1; ((void (__fastcall *)(CCCircleWave *, __int64 *))v7->setPosition)(v7, &v59); ((void (__fastcall *)(SecretLayer *, CCCircleWave *, _QWORD))a1->addChild_0)(a1, v7, 0); *(_QWORD *)&v7->m_circleMode = 0x400000001LL; v8 = cocos2d::CCSprite::createWithSpriteFrameName("secretCoin_01_001.png"); ((void (__fastcall *)(SecretLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v8, 2); ((void (__fastcall *)(cocos2d::CCSprite *, __int64 *))v8->setPosition)(v8, &v59); v9 = (cocos2d::CCArray *)sub_10024A15C(); v10 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v11 = (cocos2d::CCString *)sub_100268F4C("%s_01_001.png", "secretCoin"); CString = cocos2d::CCString::getCString(v11); cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, CString); sub_10024A2D0((__int64)v9); v13 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v14 = (cocos2d::CCString *)sub_100268F4C("%s_01_002.png", "secretCoin"); v15 = cocos2d::CCString::getCString(v14); cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, v15); sub_10024A2D0((__int64)v9); v16 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v17 = (cocos2d::CCString *)sub_100268F4C("%s_01_003.png", "secretCoin"); v18 = cocos2d::CCString::getCString(v17); cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, v18); sub_10024A2D0((__int64)v9); v19 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v20 = (cocos2d::CCString *)sub_100268F4C("%s_01_004.png", "secretCoin"); v21 = cocos2d::CCString::getCString(v20); cocos2d::CCSpriteFrameCache::spriteFrameByName(v19, v21); sub_10024A2D0((__int64)v9); v22 = cocos2d::CCAnimation::createWithSpriteFrames(v9, 0.05); v23 = cocos2d::CCAnimate::create(v22); v24 = cocos2d::CCRepeatForever::create(v23); cocos2d::CCNode::runAction(v8, v24); sub_1000229B8(&v58, &v59); v25.n128_f32[0] = *(float *)&v59 + (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 50.0); v26.n128_f32[0] = *((float *)&v58 + 1) + -60.0; sub_100022980(v25, v26, v57); sub_1000229B0(&v54); sub_1000229B0(&v55); sub_1000229B0(&v56); v27.n128_u32[0] = v58; v28.n128_f32[0] = *((float *)&v58 + 1) + 90.0; sub_100022980(v27, v28, &v53); v29.n128_f64[0] = sub_1000229D0(&v55, &v53); v29.n128_u32[0] = v57[0]; v30.n128_f32[0] = *((float *)&v58 + 1) + 180.0; sub_100022980(v29, v30, &v53); v31.n128_f64[0] = sub_1000229D0(&v56, &v53); v31.n128_u32[0] = v57[0]; v32.n128_f32[0] = *(float *)&v57[1] + -20.0; sub_100022980(v31, v32, &v53); sub_1000229D0(&v54, &v53); v33 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCBezierTo::create((__int64)&v54, 0.75); v62.ptr = (void (*)(void))520; v62.adj = 1; v34 = (unsigned __int8)cocos2d::CCCallFunc::create(v8, v62); v42 = sub_10018A494(v33, v35, v36, v37, v38, v39, v40, v41, v34); cocos2d::CCNode::runAction(v8, v42); v43 = cocos2d::CCDelayTime::create(0.5); v44 = (unsigned __int8)cocos2d::CCFadeOut::create(0.3); v52 = sub_10018A494(v43, v45, v46, v47, v48, v49, v50, v51, v44); cocos2d::CCNode::runAction(v8, v52); }
GD Web Decomp Icon

GD Web Decomp

Raw Source