// // PlayLayer::spawnFirework from 0x5c8ba4 to 0x5c8e0c (616 bytes) // // 3 xrefs: // > @ 0x88cb0 // > PlayLayer::showCompleteText @ 0x5ca4ac // > @ 0x122ca30 // // 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 PlayLayer::spawnFirework(PlayLayer *a1) { GameManager *v2; // x19 GameManager *v3; // x0 GameManager *v4; // x19 GameManager *v5; // x0 PlayerObject *m_player1; // x19 int g; // w3 int b; // w2 int r; // w1 GLubyte v10; // w24 GLubyte v11; // w25 GLubyte v12; // w26 cocos2d::CCDirector *v13; // x0 int v14; // w0 int v15; // w0 CCCircleWave *v16; // x0 CCCircleWave_vtbl *v17; // x2 cocos2d::CCNode *v18; // x19 bool v19; // w2 cocos2d::CCNode *v20; // x19 float v21; // [xsp+70h] [xbp+70h] float v22; // [xsp+98h] [xbp+98h] float v23; // [xsp+9Ch] [xbp+9Ch] cocos2d::CCPoint v24; // [xsp+A0h] [xbp+A0h] BYREF float v25[4]; // [xsp+A8h] [xbp+A8h] BYREF v2 = GameManager::sharedState(); v3 = GameManager::sharedState(); GameManager::colorForIdx(v2, v3->m_playerColor2.random - v3->m_playerColor2.seed); v4 = GameManager::sharedState(); v5 = GameManager::sharedState(); GameManager::colorForIdx(v4, v5->m_playerColor.random - v5->m_playerColor.seed); m_player1 = a1->m_player1; g = m_player1->m_playerColor1.g; b = m_player1->m_playerColor1.b; r = m_player1->m_playerColor1.r; v10 = m_player1->m_playerColor2.r; v11 = m_player1->m_playerColor2.g; v12 = m_player1->m_playerColor2.b; v25[3] = 1.0; v25[1] = (float)g / 255.0; v25[2] = (float)b / 255.0; v25[0] = (float)r / 255.0; v13 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v13); v21 = (float)((float)(v22 - 50.0) * (float)((float)rand() * 4.6566e-10)) + 50.0; v14 = rand(); cocos2d::CCPoint::CCPoint(&v24, v21, (float)((float)(v23 - 50.0) * (float)((float)v14 * 4.6566e-10)) + 50.0); v15 = rand(); v16 = CCCircleWave::create(10.0, (float)((float)((float)v15 * 4.6566e-10) * 15.0) + 35.0, 0.5, (bool)&dword_0 + 1); v17 = v16->__vftable; v16->m_color.r = v10; v16->m_color.g = v11; v16->m_color.b = v12; v18 = v16; v16->m_lineWidth = 4; v17->setPosition(v16, &v24); a1->addChild_0(a1, v18, 10); v20 = (cocos2d::CCNode *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"firework.plist", nullptr, v19); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v20->__vftable[1].onEnter)(v20, 1); a1->addChild_0(a1, v20, 13); v20->setPosition(v20, &v24); v20->__vftable[1].getChildByTag(v20, (int)v25); ((void (__fastcall *)(cocos2d::CCNode *, float *))v20->__vftable[1].getParent)(v20, v25); }
GD Web Decomp Icon

GD Web Decomp

Raw Source