// // GravityEffectSprite::init from 0x1000bfaf0 to 0x1000bfd46 (598 bytes) // // 3 xrefs: // > PlayLayer::init @ 0x1000ac56f // > GravityEffectSprite::create @ 0x1000acce2 // > @ 0x1008b7df8 // // 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 __fastcall GravityEffectSprite::init(GravityEffectSprite *a1) { cocos2d::CCSpriteBatchNode *v1; // r15 cocos2d::CCDirector *v2; // rax cocos2d::CCDirector *v3; // rax cocos2d::CCDirector *v4; // rax int i; // ebx cocos2d::CCSprite *v6; // r13 cocos2d::CCDirector *v7; // rax float v8; // xmm0_4 int v9; // eax int v10; // eax int v11; // eax int v12; // eax _BYTE v14[8]; // [rsp+Ch] [rbp-44h] BYREF float v15; // [rsp+14h] [rbp-3Ch] float v16; // [rsp+18h] [rbp-38h] float v17; // [rsp+1Ch] [rbp-34h] float v18; // [rsp+20h] [rbp-30h] bool v19; // [rsp+27h] [rbp-29h] v19 = cocos2d::CCSprite::init(a1); if ( v19 ) { v1 = cocos2d::CCSpriteBatchNode::create("gravityLine_001.png", 0x16u); ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v1->setTag)(v1, 1); ((void (__fastcall *)(GravityEffectSprite *, cocos2d::CCSpriteBatchNode *))a1->addChild)(a1, v1); ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v1->setBlendFunc)(v1, 0x100000302LL); v2 = cocos2d::CCDirector::sharedDirector(); v15 = sub_1004849C0(v2); v3 = cocos2d::CCDirector::sharedDirector(); v18 = (float)(480.0 * v15) / sub_100484DA0(v3); v4 = cocos2d::CCDirector::sharedDirector(); v16 = (float)(sub_100484DA0(v4) + -60.0) / 22.0; for ( i = 0; i != 22; ++i ) { v6 = cocos2d::CCSprite::create_1("gravityLine_001.png"); ((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, cocos2d::CCSprite *))v1->addChild)(v1, v6); v7 = cocos2d::CCDirector::sharedDirector(); v8 = sub_100484DA0(v7); v17 = (float)((float)(v8 * -0.5) + 30.0) + (float)((float)i * v16); v17 = (float)((float)((float)rand() * 4.6566129e-10) * v16) + v17; v9 = rand(); sub_10028CBE0( v14, v17, (float)((float)((float)((float)v9 * 4.6566129e-10) + (float)((float)v9 * 4.6566129e-10)) + -1.0) * 10.0); ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))v6->setPosition)(v6, v14); v10 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v6->setScaleX)( v6, (float)((float)((float)((float)v10 * 4.6566129e-10) * 4.0) + 2.0) * v18); v11 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v6->setScaleY)( v6, (float)((float)((float)v11 * 4.6566129e-10) + 2.0) * v15); v12 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v6->setOpacity)( v6, (unsigned __int8)(int)(float)((float)((float)((float)v12 * 4.6566129e-10) * 130.0) + 50.0)); } } return v19; }
GD Web Decomp Icon

GD Web Decomp

Raw Source