// // LevelPage::playCoinEffect from 0x79e880 to 0x79ed14 (1172 bytes) // // 2 xrefs: // > LevelPage::ccTouchBegan @ 0x79ee20 // > @ 0xb62f8 // // 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 LevelPage::playCoinEffect(LevelPage *a1) { bool v2; // w2 cocos2d::CCNode *v3; // x21 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 const cocos2d::CCPoint *v5; // x0 cocos2d::CCNode *v6; // x21 void (__fastcall *v7)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 const cocos2d::CCPoint *v8; // x0 CCCircleWave *v9; // x0 cocos2d::CCNode *v10; // x21 void (__fastcall *v11)(CCCircleWave *__hidden, const cocos2d::CCPoint *); // x23 const cocos2d::CCPoint *v12; // x0 cocos2d::CCSprite *v13; // x21 void (__fastcall *v14)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 const cocos2d::CCPoint *v15; // x0 cocos2d::CCArray *v16; // x0 cocos2d::CCArray *v17; // x26 cocos2d::CCSpriteFrameCache *v18; // x28 cocos2d::CCString *v19; // x0 const char *CString; // x0 cocos2d::CCSpriteFrame *v21; // x0 cocos2d::CCSpriteFrameCache *v22; // x28 cocos2d::CCString *v23; // x0 const char *v24; // x0 cocos2d::CCSpriteFrame *v25; // x0 cocos2d::CCSpriteFrameCache *v26; // x28 cocos2d::CCString *v27; // x0 const char *v28; // x0 cocos2d::CCSpriteFrame *v29; // x0 cocos2d::CCSpriteFrameCache *v30; // x28 cocos2d::CCString *v31; // x0 const char *v32; // x0 cocos2d::CCSpriteFrame *v33; // x0 cocos2d::CCAnimation *v34; // x0 cocos2d::CCAnimate *v35; // x0 cocos2d::CCRepeatForever *v36; // x0 const cocos2d::CCPoint *v37; // x0 float x; // s10 int v39; // w0 float v40; // s0 float v41; // s1 float v42; // s0 float v43; // s1 float v44; // s0 float v45; // s1 cocos2d::CCSequence *v46; // x19 cocos2d::CCFiniteTimeAction *v47; // x0 cocos2d::CCAction *v48; // x0 cocos2d::CCSequence *v49; // x19 cocos2d::CCFadeOut *v50; // x0 cocos2d::CCAction *v51; // x0 cocos2d::CCPoint v52; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCPoint v53; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCPoint v54; // [xsp+98h] [xbp+98h] BYREF cocos2d::CCPoint v55; // [xsp+A0h] [xbp+A0h] BYREF cocos2d::CCPoint v56; // [xsp+A8h] [xbp+A8h] BYREF cocos2d::CCPoint v57; // [xsp+B0h] [xbp+B0h] BYREF a1->m_coinObject->setVisible(a1->m_coinObject, 0); v3 = (cocos2d::CCNode *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"coinPickupEffect.plist", nullptr, v2); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v3->__vftable[1].onEnter)(v3, 1); a1->addChild_0(a1, v3, 1); setPosition = v3->setPosition; v5 = a1->m_coinObject->getPosition(a1->m_coinObject); setPosition(v3, v5); v6 = (cocos2d::CCNode *)CCCircleWave::create(nullptr, 25.0, 5.0, 0.3, 0); LOBYTE(v6[1].m_uReference) = -1; BYTE2(v6[1].m_uReference) = 0; BYTE1(v6[1].m_uReference) = -56; v7 = v6->setPosition; v8 = a1->m_coinObject->getPosition(a1->m_coinObject); v7(v6, v8); a1->addChild_0(a1, v6, 0); v9 = CCCircleWave::create(5.0, 60.0, 0.3, 0); v9->m_color.r = -1; v9->m_color.g = -1; v10 = v9; v9->m_color.b = 0; v11 = v9->setPosition; v12 = a1->m_coinObject->getPosition(a1->m_coinObject); v11((CCCircleWave *)v10, v12); a1->addChild_0(a1, v10, 0); v10[1].m_uIndexInArray = 1; v10[1].m_uUnknown = (unsigned int)&byte_4; v13 = cocos2d::CCSprite::createWithSpriteFrameName("secretCoin_01_001.png"); a1->addChild_0(a1, v13, 2); v14 = v13->setPosition; v15 = a1->m_coinObject->getPosition(a1->m_coinObject); v16 = (cocos2d::CCArray *)((__int64 (__fastcall *)(cocos2d::CCSprite *, const cocos2d::CCPoint *))v14)(v13, v15); v17 = (cocos2d::CCArray *)cocos2d::CCArray::create(v16); v18 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_001.png", "secretCoin"); CString = cocos2d::CCString::getCString(v19); v21 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v18, CString); cocos2d::CCArray::addObject(v17, v21); v22 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_002.png", "secretCoin"); v24 = cocos2d::CCString::getCString(v23); v25 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v22, v24); cocos2d::CCArray::addObject(v17, v25); v26 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_003.png", "secretCoin"); v28 = cocos2d::CCString::getCString(v27); v29 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v26, v28); cocos2d::CCArray::addObject(v17, v29); v30 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_004.png", "secretCoin"); v32 = cocos2d::CCString::getCString(v31); v33 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v30, v32); cocos2d::CCArray::addObject(v17, v33); v34 = cocos2d::CCAnimation::createWithSpriteFrames(v17, 0.05); v35 = cocos2d::CCAnimate::create(v34); v36 = cocos2d::CCRepeatForever::create(v35); cocos2d::CCNode::runAction(v13, v36); v37 = a1->m_coinObject->getPosition(a1->m_coinObject); cocos2d::CCPoint::CCPoint(&v52, v37); x = a1->m_coinObject->getPosition(a1->m_coinObject)->x; v39 = rand(); cocos2d::CCPoint::CCPoint( &v53, x + (float)((float)((float)((float)((float)v39 * 4.6566e-10) * 2.0) + -1.0) * 50.0), v52.y - 60.0); cocos2d::CCPoint::CCPoint(&v55); cocos2d::CCPoint::CCPoint(&v56); cocos2d::CCPoint::CCPoint(&v57); cocos2d::CCPoint::CCPoint(&v54, v52.x, v52.y + 90.0); cocos2d::CCPoint::operator=(&v56, v40, v41); cocos2d::CCPoint::CCPoint(&v54, v53.x, v52.y + 180.0); cocos2d::CCPoint::operator=(&v57, v42, v43); cocos2d::CCPoint::CCPoint(&v54, v53.x, v53.y - 20.0); cocos2d::CCPoint::operator=(&v55, v44, v45); v46 = (cocos2d::CCSequence *)cocos2d::CCBezierTo::create(&v55, 0.75); v47 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v13, 520, 1); v48 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v46, v47, 0); cocos2d::CCNode::runAction(v13, v48); v49 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.5); v50 = cocos2d::CCFadeOut::create(0.3); v51 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v49, v50, 0); cocos2d::CCNode::runAction(v13, v51); }
GD Web Decomp Icon

GD Web Decomp

Raw Source