// // PlayLayer::showTwoPlayerGuide from 0x3fef68 to 0x3ff1a8 (576 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:23 +0000 // int __fastcall PlayLayer::showTwoPlayerGuide(PlayLayer *this) { const char *v2; // r2 cocos2d::CCNode *v3; // r4 void (__fastcall *v4)(cocos2d::CCNode *, _DWORD *); // r7 const char *v5; // r2 cocos2d::CCNode *v6; // r7 int (__fastcall *v7)(cocos2d::CCNode *, _DWORD *); // r6 GameManager *v8; // r0 GameManager *v9; // r0 const char *v10; // r1 const cocos2d::CCPoint *v11; // r0 void (__fastcall *v12)(cocos2d::CCNode *, int); // r6 int v13; // r0 int v14; // r10 float *v15; // r6 void (__fastcall *v16)(float *, _DWORD *); // r8 void (__fastcall *v17)(float *, int, int, _DWORD *); // r12 unsigned __int8 v18; // r2 float v19; // r1 unsigned __int8 v20; // r2 int v21; // r11 int v22; // r0 cocos2d::CCAction *v23; // r0 int result; // r0 cocos2d::CCSequence *v25; // [sp+8h] [bp-2Ch] cocos2d::CCFiniteTimeAction *v26; // [sp+Ch] [bp-28h] float v27; // [sp+14h] [bp-20h] BYREF float v28; // [sp+18h] [bp-1Ch] _DWORD v29[2]; // [sp+1Ch] [bp-18h] BYREF _DWORD v30[2]; // [sp+24h] [bp-10h] BYREF cocos2d::CCDirector::sharedDirector(this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v27); v3 = (cocos2d::CCNode *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Player 1", "bigFont.fnt", v2); (*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v3 + 80))(v3, 1061997773); (*(void (__fastcall **)(PlayLayer *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232))(this, v3, 3); v4 = *(void (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_DWORD *)v3 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, (float)(v27 * 0.5) - (float)(v27 * 0.25), v28 * 0.5); v4(v3, v30); v6 = (cocos2d::CCNode *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Player 2", "bigFont.fnt", v5); (*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v6 + 80))(v6, 1061997773); (*(void (__fastcall **)(PlayLayer *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232))(this, v6, 3); v7 = *(int (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, (float)(v27 * 0.25) + (float)(v27 * 0.5), v28 * 0.5); v8 = (GameManager *)v7(v6, v30); v9 = (GameManager *)GameManager::sharedState(v8); if ( GameManager::getGameVariable(v9, "0010") ) { v11 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v3 + 96))(v3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, v11); v12 = *(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)v3 + 92); v13 = (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)v6 + 96))(v6); v12(v3, v13); (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD *))(*(_DWORD *)v6 + 92))(v6, v30); } v14 = 0; v15 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"floorLine_001.png", v10); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v15 + 80))(v15, (float)(v28 * 1.2) / v15[86]); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v15 + 180))(v15, 1119092736); (*(void (__fastcall **)(PlayLayer *, float *, int))(*(_DWORD *)this + 232))(this, v15, 3); v16 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, v27 * 0.5, v28 * 0.5); v16(v15, v30); v17 = *(void (__fastcall **)(float *, int, int, _DWORD *))(*(_DWORD *)v15 + 540); v29[0] = 770; v29[1] = 1; v17(v15, 770, 1, v29); (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v3 + 512))(v3, 0); (*(void (__fastcall **)(cocos2d::CCNode *, _DWORD))(*(_DWORD *)v6 + 512))(v6, 0); (*(void (__fastcall **)(float *, _DWORD))(*(_DWORD *)v15 + 456))(v15, 0); while ( 1 ) { ++v14; v25 = (cocos2d::CCSequence *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3E4CCCCD, COERCE_FLOAT(255), v18); v26 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3F4CCCCD, v19); v21 = cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3E4CCCCD, 0.0, v20); v30[0] = 268; v30[1] = 1; v22 = cocos2d::CCCallFunc::create(v3, 268, 1); v23 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v25, v26, v21, v22, 0); result = cocos2d::CCNode::runAction(v3, v23); if ( v14 == 3 ) break; if ( v14 == 1 ) v3 = v6; else v3 = (cocos2d::CCNode *)v15; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source