// // PlayLayer::spawnFirework from 0x30e918 to 0x30ead8 (448 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 PlayLayer::spawnFirework(PlayLayer *a1) { GameManager *v2; // r4 GameManager *v3; // r0 GameManager *v4; // r4 GameManager *v5; // r0 int v6; // r0 PlayerObject *m_player1; // r3 GLubyte r; // r11 GLubyte g; // r10 GLubyte b; // r9 cocos2d::CCDirector *v11; // r0 float width; // s20 int v13; // r0 float v14; // s19 int v15; // s16 int v16; // r0 int v17; // r0 CCCircleWave *v18; // r0 cocos2d::CCNode *v19; // r4 CCCircleWave_vtbl *v20; // r3 bool v21; // r2 cocos2d::CCNode *v22; // r4 unsigned int v23; // [sp+4h] [bp-30h] unsigned int v24; // [sp+8h] [bp-2Ch] cocos2d::CCSize v25; // [sp+Ch] [bp-28h] BYREF cocos2d::CCPoint v26; // [sp+14h] [bp-20h] BYREF float v27[4]; // [sp+1Ch] [bp-18h] BYREF v2 = GameManager::sharedState(); v3 = GameManager::sharedState(); GameManager::colorForIdx(v2, v3->m_playerColor2.random - v3->m_playerColor2.seed); v4 = GameManager::sharedState(); v5 = GameManager::sharedState(); *(cocos2d::ccColor3B *)&v6 = GameManager::colorForIdx(v4, v5->m_playerColor.random - v5->m_playerColor.seed); LOWORD(v23) = v6; BYTE2(v23) = BYTE2(v6); sub_30E4C8(v27, v23); m_player1 = a1->m_player1; r = m_player1->m_playerColor2.r; g = m_player1->m_playerColor2.g; b = m_player1->m_playerColor2.b; *(cocos2d::ccColor3B *)&v24 = m_player1->m_playerColor1; sub_30E4C8(v27, v24); v11 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v25, v11); width = v25.width; v13 = rand(); v14 = v25.height - 50.0; v15 = v13; v16 = rand(); cocos2d::CCPoint::CCPoint( &v26, (float)((float)(width - 50.0) * (float)((float)v15 * 4.6566e-10)) + 50.0, (float)(v14 * (float)((float)v16 * 4.6566e-10)) + 50.0); v17 = rand(); v18 = CCCircleWave::create(10.0, (float)((float)((float)v17 * 4.6566e-10) * 15.0) + 35.0, 0.5, 1); v18->m_lineWidth = 4; v19 = v18; v20 = v18->__vftable; v18->m_color.r = r; v18->m_color.g = g; v18->m_color.b = b; v20->setPosition(v18, &v26); a1->addChild_0(a1, v19, 10); v22 = (cocos2d::CCNode *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"firework.plist", nullptr, v21); ((void (__fastcall *)(cocos2d::CCNode *, int))v22->__vftable[1].onEnter)(v22, 1); a1->addChild_0(a1, v22, 13); v22->setPosition(v22, &v26); v22->__vftable[1].getChildByTag(v22, (int)v27); ((void (__fastcall *)(cocos2d::CCNode *, float *))v22->__vftable[1].getParent)(v22, v27); }
GD Web Decomp Icon

GD Web Decomp

Raw Source