// // LevelPage::addSecretCoin from 0x40a744 to 0x40a87c (312 bytes) // // 1 xrefs: // > LevelSelectLayer::updatePageWithObject @ 0x40b9e2 // // 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::addSecretCoin(LevelPage *a1) { cocos2d::CCDirector *v2; // r0 GameObject *v3; // r0 GameObject *m_coinObject; // r6 void (__fastcall *setPosition)(GameObject *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCArray *v6; // r0 cocos2d::CCArray *v7; // r6 cocos2d::CCSpriteFrameCache *v8; // r8 cocos2d::CCString *v9; // r0 const char *CString; // r0 cocos2d::CCSpriteFrame *v11; // r0 cocos2d::CCSpriteFrameCache *v12; // r8 cocos2d::CCString *v13; // r0 const char *v14; // r0 cocos2d::CCSpriteFrame *v15; // r0 cocos2d::CCSpriteFrameCache *v16; // r8 cocos2d::CCString *v17; // r0 const char *v18; // r0 cocos2d::CCSpriteFrame *v19; // r0 cocos2d::CCSpriteFrameCache *v20; // r8 cocos2d::CCString *v21; // r0 const char *v22; // r0 cocos2d::CCSpriteFrame *v23; // r0 cocos2d::CCAnimation *v24; // r0 cocos2d::CCAnimate *v25; // r0 cocos2d::CCRepeatForever *v26; // r0 cocos2d::CCSize v27; // [sp+4h] [bp-14h] BYREF cocos2d::CCPoint v28; // [sp+Ch] [bp-Ch] BYREF v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v27, v2); v3 = GameObject::createWithFrame("secretCoin_01_001.png"); a1->m_coinObject = v3; v3->m_bUnkBool2 = 0; a1->addChild_0(a1, v3, 1); m_coinObject = a1->m_coinObject; setPosition = m_coinObject->setPosition; cocos2d::CCPoint::CCPoint(&v28, v27.width * 0.5, v27.height * 0.5); v6 = (cocos2d::CCArray *)((int (__fastcall *)(GameObject *, cocos2d::CCPoint *))setPosition)(m_coinObject, &v28); v7 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6); v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_001.png", "secretCoin"); CString = cocos2d::CCString::getCString(v9); v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, CString); cocos2d::CCArray::addObject(v7, v11); v12 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_002.png", "secretCoin"); v14 = cocos2d::CCString::getCString(v13); v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, v14); cocos2d::CCArray::addObject(v7, v15); v16 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_003.png", "secretCoin"); v18 = cocos2d::CCString::getCString(v17); v19 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, v18); cocos2d::CCArray::addObject(v7, v19); v20 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s_01_004.png", "secretCoin"); v22 = cocos2d::CCString::getCString(v21); v23 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v20, v22); cocos2d::CCArray::addObject(v7, v23); v24 = cocos2d::CCAnimation::createWithSpriteFrames(v7, 0.115); v25 = cocos2d::CCAnimate::create(v24); v26 = cocos2d::CCRepeatForever::create(v25); cocos2d::CCNode::runAction(a1->m_coinObject, v26); }
GD Web Decomp Icon

GD Web Decomp

Raw Source