// // LevelPage::addSecretCoin from 0x100403378 to 0x100403510 (408 bytes) // // 1 xrefs: // > LevelSelectLayer::updatePageWithObject @ 0x10040242c // // 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 LevelPage::addSecretCoin(LevelPage *a1) { cocos2d::CCDirector *v2; // x0 GameObject *v3; // x0 __n128 v4; // q0 GameObject *m_coinObject; // x20 __n128 v6; // q1 cocos2d::CCArray *v7; // x20 cocos2d::CCSpriteFrameCache *v8; // x21 cocos2d::CCString *v9; // x0 const char *CString; // x0 cocos2d::CCSpriteFrameCache *v11; // x21 cocos2d::CCString *v12; // x0 const char *v13; // x0 cocos2d::CCSpriteFrameCache *v14; // x21 cocos2d::CCString *v15; // x0 const char *v16; // x0 cocos2d::CCSpriteFrameCache *v17; // x21 cocos2d::CCString *v18; // x0 const char *v19; // x0 cocos2d::CCAnimation *v20; // x0 cocos2d::CCAnimate *v21; // x0 cocos2d::CCRepeatForever *v22; // x0 _DWORD v23[4]; // [xsp+10h] [xbp-30h] BYREF v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2); v3 = GameObject::createWithFrame("secretCoin_01_001.png"); a1->m_coinObject = v3; v3->m_bUnkBool2 = 0; v4 = ((__n128 (__fastcall *)(LevelPage *, GameObject *, __int64))a1->addChild_0)(a1, v3, 1); m_coinObject = a1->m_coinObject; v4.n128_f32[0] = *(float *)&v23[2] * 0.5; v6.n128_f32[0] = *(float *)&v23[3] * 0.5; sub_100022980(v4, v6, v23); ((void (__fastcall *)(GameObject *, _DWORD *))m_coinObject->setPosition)(m_coinObject, v23); v7 = (cocos2d::CCArray *)sub_10024A15C(); v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v9 = (cocos2d::CCString *)sub_100268F4C("%s_01_001.png", "secretCoin"); CString = cocos2d::CCString::getCString(v9); cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, CString); sub_10024A2D0((__int64)v7); v11 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v12 = (cocos2d::CCString *)sub_100268F4C("%s_01_002.png", "secretCoin"); v13 = cocos2d::CCString::getCString(v12); cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, v13); sub_10024A2D0((__int64)v7); v14 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v15 = (cocos2d::CCString *)sub_100268F4C("%s_01_003.png", "secretCoin"); v16 = cocos2d::CCString::getCString(v15); cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, v16); sub_10024A2D0((__int64)v7); v17 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v18 = (cocos2d::CCString *)sub_100268F4C("%s_01_004.png", "secretCoin"); v19 = cocos2d::CCString::getCString(v18); cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, v19); sub_10024A2D0((__int64)v7); v20 = cocos2d::CCAnimation::createWithSpriteFrames(v7, 0.115); v21 = cocos2d::CCAnimate::create(v20); v22 = cocos2d::CCRepeatForever::create(v21); cocos2d::CCNode::runAction(a1->m_coinObject, v22); }
GD Web Decomp Icon

GD Web Decomp

Raw Source