// // PlayerObject::playCompleteEffect from 0x100214020 to 0x10021449c (1148 bytes) // // 2 xrefs: // > PlayLayer::levelComplete @ 0x1000b342b // > PlayLayer::levelComplete @ 0x1000b3444 // // 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 PlayerObject::playCompleteEffect(PlayerObject *a1, bool a2, bool a3) { __m128 v3; // xmm1 __m128 v4; // xmm3 PlayerFireBoostSprite *m_robotFire; // rdi cocos2d::CCLayer *m_parentLayer; // r14 cocos2d::CCFadeTo *v9; // r12 cocos2d::CCParticleSystemQuad *v10; // r15 __int64 v11; // rax __m128 v12; // xmm0 __int64 v13; // rax CCCircleWave *v14; // r15 __int16 v15; // ax __int64 v16; // rax CCCircleWave *v17; // r14 __int16 v18; // ax __int64 v19; // rax CCCircleWave *v20; // r14 __int16 v21; // ax __int64 v22; // rax __m128 v23; // [rsp+0h] [rbp-40h] _OWORD v24[3]; // [rsp+10h] [rbp-30h] BYREF if ( a1->m_isDart ) PlayerObject::fadeOutStreak2(a1, 0.2); PlayerObject::stopDashing(a1); PlayerObject::deactivateParticle(a1); cocos2d::CCParticleSystem::stopSystem(a1->m_trailingParticles); cocos2d::CCParticleSystem::stopSystem(a1->m_shipClickParticles); cocos2d::CCParticleSystem::stopSystem(a1->m_vehicleGroundParticles); cocos2d::CCParticleSystem::stopSystem(a1->m_robotBurstParticles); m_robotFire = a1->m_robotFire; if ( m_robotFire ) { cocos2d::CCNode::stopAllActions(m_robotFire); ((void (__fastcall *)(PlayerFireBoostSprite *, _QWORD))a1->m_robotFire->setVisible)(a1->m_robotFire, 0); } PlayerObject::toggleGhostEffect(a1, (GhostType)0); PlayerObject::disableSwingFire(a1); if ( ((__int64 (__fastcall *)(PlayerObject *))a1->getParent)(a1) ) { m_parentLayer = (cocos2d::CCLayer *)((__int64 (__fastcall *)(PlayerObject *))a1->getParent)(a1); if ( a3 ) goto LABEL_7; LABEL_10: v9 = cocos2d::CCFadeTo::create(0.1, 0); ((void (__fastcall *)(cocos2d::CCFadeTo *, __int64))v9->setTag)(v9, 4); cocos2d::CCNode::runAction(a1, v9); if ( a2 ) return; goto LABEL_11; } m_parentLayer = a1->m_parentLayer; if ( !a3 ) goto LABEL_10; LABEL_7: ((void (__fastcall *)(PlayerObject *, _QWORD))a1->setOpacity)(a1, 0); if ( !a2 ) { LABEL_11: v10 = cocos2d::CCParticleSystemQuad::create("explodeEffectVortex.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v10->setPositionType)(v10, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v10, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v10->setAutoRemoveOnFinish)(v10, 1); v11 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v10->setPosition)(v10, v11); v12 = 0; v3.f32[0] = (float)(unsigned __int8)*(_WORD *)&a1->m_playerColor1.r / 255.0; v4.f32[0] = (float)HIBYTE(*(unsigned __int16 *)&a1->m_playerColor1.r) / 255.0; v12.f32[0] = (float)a1->m_playerColor1.b / 255.0; v24[0] = _mm_movelh_ps(_mm_insert_ps(v3, v4, 16), _mm_blend_ps(v12, (__m128)xmmword_1008150D0, 14)); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _OWORD *))v10->setStartColor)(v10, v24); v24[0] = _mm_loadh_ps((const double *)&qword_1008164A8); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _OWORD *))v10->setEndColor)(v10, v24); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v10->setBlendAdditive)(v10, 1); v23 = _mm_loadh_ps((const double *)&qword_100815CD0); v24[0] = v23; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _OWORD *))v10->setStartColorVar)(v10, v24); v24[0] = v23; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _OWORD *))v10->setEndColorVar)(v10, v24); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v10->getSpeed)(v10); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v10->setSpeed)(v10); v12.f32[0] = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v10->getLife)(v10); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v10->setLife)(v10, v12.f32[0] * 3.0); v13 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v10->getPosVar)(v10); sub_10028CD40(v24, v13, 1.2); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _OWORD *))v10->setPosVar)(v10, v24); v12.f32[0] = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v10->getStartSize)(v10); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v10->setStartSize)(v10, v12.f32[0] * 0.80000001); v12.f32[0] = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v10->getEndSize)(v10); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v10->setEndSize)(v10, v12.f32[0] * 0.40000001); cocos2d::CCParticleSystem::resetSystem(v10); v14 = CCCircleWave::create_1(20.0, 80.0, 0.72000003, 0); v15 = *(_WORD *)&a1->m_playerColor1.r; v14->m_color.b = a1->m_playerColor1.b; *(_WORD *)&v14->m_color.r = v15; v16 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v14->setPosition)(v14, v16); ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))m_parentLayer->addChild_0)( m_parentLayer, v14, 99); v17 = CCCircleWave::create_1(30.0, 50.0, 0.84000003, 0); v18 = *(_WORD *)&a1->m_playerColor2.r; v17->m_color.b = a1->m_playerColor2.b; *(_WORD *)&v17->m_color.r = v18; v19 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v17->setPosition)(v17, v19); v17->m_opacityMod = 0.80000001; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v17, 1000); v20 = CCCircleWave::create_1(30.0, 20.0, 0.96000004, 0); v21 = *(_WORD *)&a1->m_playerColor1.r; v20->m_color.b = a1->m_playerColor1.b; *(_WORD *)&v20->m_color.r = v21; v22 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v20->setPosition)(v20, v22); v20->m_opacityMod = 0.80000001; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v20, 1000); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source