// // GameObject::spawnDefaultPickupParticle from 0x1003494b0 to 0x100349680 (464 bytes) // // 1 xrefs: // > GJBaseGameLayer::destroyObject @ 0x1001e9500 // // 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 __fastcall GameObject::spawnDefaultPickupParticle(GameObject *a1, GJBaseGameLayer *a2) { unsigned int v4; // w22 int m_objectID; // w23 const char *v6; // x21 __int64 *v7; // x0 cocos2d::CCParticleSystemQuad *v8; // x0 cocos2d::CCParticleSystem *v9; // x21 _BYTE *v10; // x0 unsigned int v11; // s0 unsigned int v12; // s1 unsigned int v13; // s2 unsigned int v14; // s9 unsigned int v15; // s10 float v16; // s11 CCCircleWave *v17; // x21 __int64 v18; // x0 __int16 v19; // w8 __int64 v20; // x0 unsigned __int64 v21; // [xsp+0h] [xbp-60h] BYREF float v22; // [xsp+8h] [xbp-58h] float v23; // [xsp+Ch] [xbp-54h] cocos2d::CCPoint v24; // 0:s0.4,4:s1.4 v4 = ((__int64 (__fastcall *)(GameObject *))a1->getOpacity)(a1); m_objectID = a1->m_objectID; if ( m_objectID == 1614 ) v6 = "coinPickupEffect.plist"; else v6 = "glassDestroy01.plist"; v7 = (__int64 *)((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1); v24.x = sub_1000229B8((__int64 *)&v21, v7); v8 = GJBaseGameLayer::spawnParticle(a2, v6, 0, kCCPositionTypeGrouped, v24); if ( v8 ) { v9 = v8; v10 = (_BYTE *)((__int64 (__fastcall *)(GameObject *))a1->getColor)(a1); LOBYTE(v11) = *v10; LOBYTE(v12) = v10[1]; LOBYTE(v13) = v10[2]; *(float *)&v14 = (float)v11 / 255.0; *(float *)&v15 = (float)v12 / 255.0; v16 = (float)v13 / 255.0; *(float *)&v21 = *(float *)&v14; *((float *)&v21 + 1) = *(float *)&v15; v22 = v16; v23 = (float)v4 / 255.0; ((void (__fastcall *)(cocos2d::CCParticleSystem *, unsigned __int64 *))v9->setStartColor)(v9, &v21); v21 = __PAIR64__(v15, v14); v22 = v16; v23 = 0.0; ((void (__fastcall *)(cocos2d::CCParticleSystem *, unsigned __int64 *))v9->setEndColor)(v9, &v21); if ( m_objectID == 1614 ) { cocos2d::CCParticleSystem::loadScaledDefaults(v9, 0.6); return; } } else if ( m_objectID == 1614 ) { return; } v17 = CCCircleWave::create(12.0, 2.0, 0.3, 0, 0); v18 = ((__int64 (__fastcall *)(GameObject *))a1->getColor)(a1); v19 = *(_WORD *)v18; v17->m_color.b = *(_BYTE *)(v18 + 2); *(_WORD *)&v17->m_color.r = v19; v20 = ((__int64 (__fastcall *)(GameObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v17->setPosition)(v17, v20); ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a2->m_objectLayer->addChild_0)( a2->m_objectLayer, v17, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source