// // PlayLayer::playGravityEffect from 0x140510ae0 to 0x140510e2f (847 bytes) // // 2 xrefs: // > @ 0x1407d5ee8 // > @ 0x14092ab60 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:33:31 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall PlayLayer::playGravityEffect(__int64 a1, char a2) { __int64 v4; // rax int v5; // eax __int64 v6; // rax cocos2d::CCSprite *v7; // r14 __int64 v8; // rdx int v9; // eax unsigned int v10; // ebx __int64 v11; // rax __int64 v12; // rax __int16 v13; // si char v14; // r15 __int64 v15; // rax cocos2d::CCArray *v16; // rsi struct cocos2d::CCObject *v17; // rax struct cocos2d::CCFiniteTimeAction *v18; // rbx __int64 v19; // rax struct cocos2d::CCAction *v20; // rax __int64 v21; // rbx struct cocos2d::CCFiniteTimeAction *v22; // rax struct cocos2d::CCAction *v23; // rax _BYTE v24[8]; // [rsp+20h] [rbp-30h] BYREF _BYTE v25[8]; // [rsp+28h] [rbp-28h] BYREF _BYTE v26[16]; // [rsp+30h] [rbp-20h] BYREF void *v27; // [rsp+80h] [rbp+30h] BYREF float v28; // [rsp+90h] [rbp+40h] BYREF float v29; // [rsp+94h] [rbp+44h] char v30; // [rsp+98h] [rbp+48h] BYREF if ( !*(_BYTE *)(a1 + 15432) ) { v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v27 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v27); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } if ( !*(_BYTE *)(v4 + 957) ) { v5 = *(_DWORD *)(a1 + 15036); if ( v5 < *(_DWORD *)(a1 + 15032) ) { *(_DWORD *)(a1 + 15036) = v5 + 1; v6 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v6, &v28); v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 15048), *(_DWORD *)(a1 + 15040)); LOBYTE(v8) = 1; (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)v7 + 520LL))(v7, v8); v9 = *(_DWORD *)(a1 + 15040); v10 = 0; if ( v9 < *(_DWORD *)(a1 + 15032) - 1 ) *(_DWORD *)(a1 + 15040) = v9 + 1; else *(_DWORD *)(a1 + 15040) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, v28 * 0.5, v29 + 95.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, v28 * 0.5, -95.0); if ( *(_BYTE *)(*(_QWORD *)(a1 + 3512) + 2507LL) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, v28 + 95.0, v29 * 0.5); cocos2d::CCPoint::operator=(v24, v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, -95.0, v29 * 0.5); cocos2d::CCPoint::operator=(&v30, v12); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26); if ( a2 ) { cocos2d::CCPoint::operator=(v25, v24); cocos2d::CCPoint::operator=(v26, &v30); v13 = -1; v14 = 0; } else { cocos2d::CCPoint::operator=(v25, &v30); cocos2d::CCPoint::operator=(v26, v24); cocos2d::CCSprite::setFlipY(v7, 1); LOWORD(v27) = -256; v14 = -1; v13 = -256; } (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v7 + 352LL))(v7); (*(void (__fastcall **)(__int64, cocos2d::CCSprite *, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, v7, 0); (*(void (__fastcall **)(cocos2d::CCSprite *, _BYTE *))(*(_QWORD *)v7 + 184LL))(v7, v25); LOWORD(v27) = v13; BYTE2(v27) = v14; v15 = (*(__int64 (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)v7 + 472LL))(v7, 1); if ( v15 ) { v16 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 480LL))(v15); if ( cocos2d::CCArray::count(v16) ) { do { v17 = cocos2d::CCArray::objectAtIndex(v16, v10); (**((void (__fastcall ***)(__int64, void **))v17 + 40))((__int64)v17 + 320, &v27); ++v10; } while ( v10 < cocos2d::CCArray::count(v16) ); } } v18 = cocos2d::CCMoveTo::create(0.40000001, (const struct cocos2d::CCPoint *)v26); v19 = cocos2d::CCCallFunc::create(v7, sub_14003F5B0); v20 = cocos2d::CCSequence::create(v18, v19, 0); cocos2d::CCNode::runAction(v7, v20); v21 = cocos2d::CCCallFunc::create(a1, PlayLayer::gravityEffectFinished); v22 = cocos2d::CCDelayTime::create(0.40000001); v23 = cocos2d::CCSequence::create(v22, v21, 0); cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v23); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source