// // GameObject::spawnDefaultPickupParticle from 0x52a7b4 to 0x52a910 (348 bytes) // // 1 xrefs: // > GJBaseGameLayer::destroyObject @ 0x4920ae // // 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 GameObject::spawnDefaultPickupParticle(GameObject *a1, GJBaseGameLayer *a2) { int v4; // r0 _BOOL4 v5; // r7 unsigned int v6; // s19 const char *v7; // r6 const cocos2d::CCPoint *v8; // r0 cocos2d::CCParticleSystemQuad *v9; // r6 const cocos2d::ccColor3B *v10; // r0 void (__fastcall *setStartColor)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // r3 int r; // s18 int g; // s17 int b; // r2 float v15; // s18 float v16; // s17 float v17; // s16 void (__fastcall *setEndColor)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // r3 CCCircleWave *v19; // r6 const cocos2d::ccColor3B *v20; // r0 GLubyte v21; // r2 GLubyte v22; // r1 CCCircleWave_vtbl *v23; // r3 void (__fastcall *setPosition)(CCCircleWave *__hidden, const cocos2d::CCPoint *); // r9 const cocos2d::CCPoint *v25; // r0 cocos2d::CCPoint v26; // [sp+0h] [bp-24h] bool v27; // [sp+4h] [bp-20h] cocos2d::CCPoint v28; // [sp+Ch] [bp-18h] BYREF float v29; // [sp+14h] [bp-10h] float v30; // [sp+18h] [bp-Ch] v4 = ((int (__fastcall *)(GameObject *))a1->getOpacity)(a1); v5 = a1->m_objectID == 1614; v6 = v4; if ( a1->m_objectID == 1614 ) v7 = "coinPickupEffect.plist"; else v7 = "glassDestroy01.plist"; v8 = a1->getPosition(a1); cocos2d::CCPoint::CCPoint(&v28, v8); LODWORD(v26.x) = &v28; v9 = GJBaseGameLayer::spawnParticle(a2, v7, 0, kCCPositionTypeGrouped, v26); if ( v9 ) { v10 = a1->getColor(a1); setStartColor = v9->setStartColor; r = v10->r; g = v10->g; b = v10->b; v30 = (float)v6 / 255.0; v15 = (float)r / 255.0; v16 = (float)g / 255.0; v28.x = v15; v17 = (float)b / 255.0; v28.y = v16; v29 = v17; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, cocos2d::CCPoint *, int))setStartColor)(v9, &v28, b); setEndColor = v9->setEndColor; v28.x = v15; v30 = 0.0; v28.y = v16; v29 = v17; setEndColor(v9, (const cocos2d::ccColor4F *)&v28); if ( !v5 ) { LABEL_6: v19 = CCCircleWave::create((CCCircleWave *)0x41400000, 2.0, 0.3, 0.0, 0, v27); v20 = a1->getColor(a1); v21 = v20->g; v22 = v20->r; v19->m_color.b = v20->b; v23 = v19->__vftable; v19->m_color.g = v21; v19->m_color.r = v22; setPosition = v23->setPosition; v25 = a1->getPosition(a1); setPosition(v19, v25); a2->m_objectLayer->addChild_0(a2->m_objectLayer, v19, 0); return; } cocos2d::CCParticleSystem::loadScaledDefaults(v9, 0.6); } else if ( !v5 ) { goto LABEL_6; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source