// // GravityEffectSprite::init from 0x5e5cb0 to 0x5e5f08 (600 bytes) // // 3 xrefs: // > GravityEffectSprite::create @ 0x5e5f70 // > @ 0xa22e8 // > @ 0x1149420 // // 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 // bool GravityEffectSprite::init(GravityEffectSprite *a1) { bool v2; // w24 int v4; // w19 cocos2d::CCSpriteBatchNode *v5; // x20 cocos2d::CCDirector *v6; // x0 float v7; // s0 float v8; // s12 cocos2d::CCDirector *v9; // x0 float v10; // s0 float v11; // w28 cocos2d::CCDirector *v12; // x0 const char *v13; // x1 float v14; // s0 float v15; // s10 __int64 v16; // x26 cocos2d::CCDirector *v17; // x0 float v18; // s0 float v19; // s1 int v20; // w0 void (__fastcall *v21)(__int64, float); // x27 int v22; // w0 void (__fastcall *v23)(__int64, float); // x27 int v24; // w0 void (__fastcall *v25)(__int64, _QWORD); // x27 int v26; // w0 float v27; // [xsp+A0h] [xbp+A0h] cocos2d::CCPoint v28; // [xsp+B0h] [xbp+B0h] BYREF v2 = cocos2d::CCSprite::init(a1); if ( v2 ) { v4 = 0; v5 = cocos2d::CCSpriteBatchNode::create("gravityLine_001.png", (unsigned int)&dword_14 + 2); v5->setTag(v5, 1); a1->addChild(a1, v5); ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v5->setBlendFunc)(v5, 0x100000302LL); v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getContentScaleFactor(v6); v8 = v7; v9 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v9); v11 = (float)(v8 * 480.0) / v10; v12 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v12); v15 = (float)(v14 - 60.0) / 22.0; do { v16 = cocos2d::CCSprite::create((cocos2d::CCSprite *)"gravityLine_001.png", v13); v5->addChild(v5, (cocos2d::CCNode *)v16); v17 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenRight(v17); v19 = (float)v4++; v27 = (float)((float)(30.0 - (float)(v18 * 0.5)) + (float)(v19 * v15)) + (float)((float)((float)rand() * 4.6566e-10) * v15); v20 = rand(); cocos2d::CCPoint::CCPoint(&v28, v27, (float)((float)((float)((float)v20 * 4.6566e-10) * 2.0) + -1.0) * 10.0); (*(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v16 + 184LL))(v16, &v28); v21 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 128LL); v22 = rand(); v21(v16, (float)((float)((float)((float)v22 * 4.6566e-10) * 4.0) + 2.0) * v11); v23 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 144LL); v24 = rand(); v23(v16, v8 * (float)((float)((float)v24 * 4.6566e-10) + 2.0)); v25 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v16 + 896LL); v26 = rand(); v25(v16, (unsigned int)(float)((float)((float)((float)v26 * 4.6566e-10) * 130.0) + 50.0)); } while ( v4 != 22 ); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source