// // ExplodeItemNode::update from 0x566060 to 0x5662ba (602 bytes) // // 0 xrefs: // // 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 ExplodeItemNode::update(ExplodeItemNode *a1, float a2) { float v4; // s16 float v5; // s17 unsigned int v6; // r7 float m_floorHeight; // s18 float v8; // s18 bool v9; // cf cocos2d::CCArray *m_sprites; // r0 int v11; // r4 const cocos2d::CCPoint *v12; // r0 float v13; // s15 float v14; // s15 float v15; // s14 float v16; // s14 float v17; // s13 float v18; // s15 float v19; // s15 float v20; // s14 float v21; // s15 void (__fastcall *v22)(int, _DWORD); // r8 float v23; // r0 float v24; // s15 float v25; // s14 int v26; // r2 int v27; // r8 void (__fastcall *v28)(int, int); // r9 int v29; // r0 cocos2d::CCParticleSystem *v30; // r0 cocos2d::CCPoint v31; // [sp+Ch] [bp-1Ch] BYREF _BYTE v32[4]; // [sp+14h] [bp-14h] BYREF float v33; // [sp+18h] [bp-10h] cocos2d::CCPoint v34; // [sp+1Ch] [bp-Ch] BYREF v4 = a2 * 54.0; if ( a1->m_noGravity ) v5 = 0.0; else v5 = v4 * 0.5; v6 = 0; m_floorHeight = a1->m_floorHeight; v8 = m_floorHeight - a1->getPosition(a1)->y; while ( 1 ) { v9 = v6 >= cocos2d::CCArray::count(a1->m_sprites); m_sprites = a1->m_sprites; if ( v9 ) break; v11 = cocos2d::CCArray::objectAtIndex(m_sprites, v6); v12 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11); cocos2d::CCPoint::CCPoint(&v31, v12); v13 = *(float *)(v11 + 516) - a2; *(float *)(v11 + 516) = v13; if ( v13 <= 0.0 ) { v30 = *(cocos2d::CCParticleSystem **)(v11 + 528); if ( v30 ) { cocos2d::CCParticleSystem::stopSystem(v30); (*(void (__fastcall **)(_DWORD))(**(_DWORD **)(v11 + 528) + 260))(*(_DWORD *)(v11 + 528)); *(_DWORD *)(v11 + 528) = 0; } cocos2d::CCArray::removeObjectAtIndex(a1->m_sprites, v6, 1); (*(void (__fastcall **)(int))(*(_DWORD *)v11 + 260))(v11); } else { v14 = *(float *)(v11 + 512) - v5; v15 = (float)((float)((float)(1.0 - v4) * 0.02) + 0.98) * *(float *)(v11 + 508); *(float *)(v11 + 512) = v14; *(float *)(v11 + 508) = v15; cocos2d::CCPoint::CCPoint(&v34, v15 * v4, v14 * v4); cocos2d::CCPoint::operator+(v32, &v31, &v34); v16 = *(float *)(v11 + 344); v17 = *(float *)(v11 + 348); if ( v16 > v17 ) v18 = v17 * 0.5; else v18 = v16 * 0.5; v19 = v8 + v18; if ( v33 < v19 ) { v20 = *(float *)(v11 + 512); if ( v20 < 0.0 ) { v33 = v19; v21 = v20 * -0.8; if ( (float)(v20 * -0.8) < 1.5 ) v21 = 1.5; *(float *)(v11 + 512) = v21; } } (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92))(v11, v32); v22 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v11 + 172); v23 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)v11 + 176))(v11)); v22(v11, v23 + (float)(v4 * *(float *)(v11 + 524))); v24 = *(float *)(v11 + 516); v25 = *(float *)(v11 + 520); if ( v24 < v25 ) { (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v11 + 448))( v11, (unsigned __int8)(unsigned int)(float)((float)(v24 / v25) * 255.0)); v26 = *(_DWORD *)(v11 + 528); if ( v26 ) *(_BYTE *)(v26 + 726) = (unsigned int)(float)((float)(*(float *)(v11 + 516) / *(float *)(v11 + 520)) * 255.0); } v27 = *(_DWORD *)(v11 + 528); if ( v27 ) { v28 = *(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 92); v29 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11); v28(v27, v29); } ++v6; } } if ( !cocos2d::CCArray::count(m_sprites) ) { cocos2d::CCNode::unscheduleUpdate(a1); a1->removeMeAndCleanup(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source