// // SecretLayer4::playCoinEffect from 0x4f1670 to 0x4f196e (766 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 SecretLayer4::playCoinEffect(SecretLayer4 *a1) { cocos2d::CCDirector *v2; // r0 bool v3; // r2 cocos2d::CCNode *v4; // r5 CCCircleWave *v5; // r0 cocos2d::CCNode *v6; // r7 CCCircleWave_vtbl *v7; // r3 CCCircleWave *v8; // r0 CCCircleWave_vtbl *v9; // r3 cocos2d::CCNode *v10; // r7 cocos2d::CCSprite *v11; // r7 cocos2d::CCArray *v12; // r0 cocos2d::CCArray *v13; // r8 cocos2d::CCSpriteFrameCache *v14; // r10 cocos2d::CCString *v15; // r0 const char *CString; // r0 cocos2d::CCSpriteFrame *v17; // r0 cocos2d::CCSpriteFrameCache *v18; // r10 cocos2d::CCString *v19; // r0 const char *v20; // r0 cocos2d::CCSpriteFrame *v21; // r0 cocos2d::CCSpriteFrameCache *v22; // r10 cocos2d::CCString *v23; // r0 const char *v24; // r0 cocos2d::CCSpriteFrame *v25; // r0 cocos2d::CCSpriteFrameCache *v26; // r10 cocos2d::CCString *v27; // r0 const char *v28; // r0 cocos2d::CCSpriteFrame *v29; // r0 cocos2d::CCAnimation *v30; // r0 cocos2d::CCAnimate *v31; // r0 cocos2d::CCRepeatForever *v32; // r0 float x; // s19 float v34; // s15 int v35; // r2 bool v36; // r3 int v37; // r2 bool v38; // r3 int v39; // r2 bool v40; // r3 const cocos2d::_ccBezierConfig *v41; // r2 cocos2d::CCSequence *v42; // r6 cocos2d::CCFiniteTimeAction *v43; // r0 cocos2d::CCAction *v44; // r0 cocos2d::CCSequence *v45; // r4 cocos2d::CCFadeOut *v46; // r0 cocos2d::CCAction *v47; // r0 bool v48; // [sp+4h] [bp-4Ch] cocos2d::CCSize v49; // [sp+Ch] [bp-44h] BYREF cocos2d::CCPoint v50; // [sp+14h] [bp-3Ch] BYREF cocos2d::CCPoint v51; // [sp+1Ch] [bp-34h] BYREF cocos2d::CCPoint v52; // [sp+24h] [bp-2Ch] BYREF cocos2d::CCPoint v53; // [sp+2Ch] [bp-24h] BYREF cocos2d::CCPoint v54; // [sp+34h] [bp-1Ch] BYREF cocos2d::CCPoint v55; // [sp+3Ch] [bp-14h] BYREF cocos2d::CCPoint v56; // [sp+44h] [bp-Ch] BYREF v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v49, v2); cocos2d::CCPoint::CCPoint(&v50, v49.width * 0.5, (float)(v49.height * 0.5) + 50.0); v4 = (cocos2d::CCNode *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"coinPickupEffect.plist", nullptr, v3); ((void (__fastcall *)(cocos2d::CCNode *, int))v4->__vftable[1].onEnter)(v4, 1); a1->addChild_0(a1, v4, 1); v4->setPosition(v4, &v50); v5 = CCCircleWave::create((CCCircleWave *)0x41C80000, 5.0, 0.3, 0.0, 0, v48); v5->m_color.g = -56; v6 = v5; v7 = v5->__vftable; v5->m_color.r = -1; v5->m_color.b = 0; v7->setPosition(v5, &v50); a1->addChild_0(a1, v6, 0); v8 = CCCircleWave::create(5.0, 60.0, 0.3, 0); v9 = v8->__vftable; v10 = v8; v8->m_color.r = -1; v8->m_color.g = -1; v8->m_color.b = 0; v9->setPosition(v8, &v50); a1->addChild_0(a1, v10, 0); v10[1].m_uIndexInArray = 1; v10[1].m_uUnknown = 4; v11 = cocos2d::CCSprite::createWithSpriteFrameName("secretCoin_01_001.png"); a1->addChild_0(a1, v11, 2); v12 = (cocos2d::CCArray *)((int (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *))v11->setPosition)(v11, &v50); v13 = (cocos2d::CCArray *)cocos2d::CCArray::create(v12); v14 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_001.png", "secretCoin"); CString = cocos2d::CCString::getCString(v15); v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, CString); cocos2d::CCArray::addObject(v13, v17); v18 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_002.png", "secretCoin"); v20 = cocos2d::CCString::getCString(v19); v21 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v18, v20); cocos2d::CCArray::addObject(v13, v21); v22 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_003.png", "secretCoin"); v24 = cocos2d::CCString::getCString(v23); v25 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v22, v24); cocos2d::CCArray::addObject(v13, v25); v26 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_004.png", "secretCoin"); v28 = cocos2d::CCString::getCString(v27); v29 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v26, v28); cocos2d::CCArray::addObject(v13, v29); v30 = cocos2d::CCAnimation::createWithSpriteFrames(v13, 0.05); v31 = cocos2d::CCAnimate::create(v30); v32 = cocos2d::CCRepeatForever::create(v31); cocos2d::CCNode::runAction(v11, v32); cocos2d::CCPoint::CCPoint(&v51, &v50); x = v50.x; v34 = vcvts_n_f32_s32(rand(), 0x1Fu); cocos2d::CCPoint::CCPoint(&v52, x + (float)((float)((float)(v34 + v34) - 1.0) * 50.0), v51.y - 60.0); cocos2d::CCPoint::CCPoint(&v54); cocos2d::CCPoint::CCPoint(&v55); cocos2d::CCPoint::CCPoint(&v56); cocos2d::CCPoint::CCPoint(&v53, v51.x, v51.y + 90.0); cocos2d::CCPoint::operator=((PlayerObject *)&v55, COERCE_FLOAT(&v53), v35, v36); cocos2d::CCPoint::CCPoint(&v53, v52.x, v51.y + 180.0); cocos2d::CCPoint::operator=((PlayerObject *)&v56, COERCE_FLOAT(&v53), v37, v38); cocos2d::CCPoint::CCPoint(&v53, v52.x, v52.y - 20.0); cocos2d::CCPoint::operator=((PlayerObject *)&v54, COERCE_FLOAT(&v53), v39, v40); v42 = (cocos2d::CCSequence *)cocos2d::CCBezierTo::create((cocos2d::CCBezierTo *)0x3F400000, COERCE_FLOAT(&v54), v41); LODWORD(v53.x) = 260; LODWORD(v53.y) = 1; v43 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v11, 260, 1); v44 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v42, v43, 0); cocos2d::CCNode::runAction(v11, v44); v45 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.5); v46 = cocos2d::CCFadeOut::create(0.3); v47 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v45, v46, 0); cocos2d::CCNode::runAction(v11, v47); }
GD Web Decomp Icon

GD Web Decomp

Raw Source