// // PlayLayer::showCompleteText from 0x10011a6ac to 0x10011abd4 (1320 bytes) // // 3 xrefs: // > PlayLayer::showCompleteEffect @ 0x10011a5a8 // > PlayLayer::levelComplete @ 0x10011a200 // > PlayLayer::showCompleteEffect @ 0x10011a5cc // // 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 PlayLayer::showCompleteText(PlayLayer *a1) { EndTriggerGameObject *m_platformerEndTrigger; // x8 bool m_noEffects; // w25 cocos2d::CCDirector *v4; // x0 __n128 v5; // q0 __n128 v6; // q1 float v7; // s8 const char *v8; // x0 cocos2d::CCSprite *v9; // x20 cocos2d::CCScaleTo *v10; // x0 cocos2d::CCEaseElasticOut *v11; // x21 cocos2d::CCScaleTo *v12; // x0 cocos2d::CCAction *v13; // x0 __int64 *v14; // x0 cocos2d::CCParticleSystemQuad *v15; // x21 PlayerObject *m_player1; // x8 unsigned __int16 b; // w9 float32x2_t v18; // d8 int8x8_t v19; // d1 PlayerObject *v20; // x8 unsigned __int16 v21; // w9 int8x8_t v22; // d1 cocos2d::CCParticleSystemQuad *v23; // x22 __int64 v24; // x0 cocos2d::CCDirector *v25; // x0 float v26; // s0 CCCircleWave *v27; // x21 PlayerObject *v28; // x8 __int16 v29; // w9 CCCircleWave *v30; // x21 PlayerObject *v31; // x8 __int16 v32; // w9 __int64 v33; // x0 unsigned int i; // w22 cocos2d::CCDelayTime *v35; // x21 cocos2d::CCAction *v36; // x0 unsigned int j; // w22 unsigned int v38; // w0 cocos2d::CCDelayTime *v39; // x21 cocos2d::CCAction *v40; // x0 cocos2d::CCDelayTime *v41; // x20 cocos2d::CCAction *v42; // x0 float32x2_t v43; // [xsp+28h] [xbp-98h] BYREF float v44; // [xsp+30h] [xbp-90h] int v45; // [xsp+34h] [xbp-8Ch] __int64 v46; // [xsp+38h] [xbp-88h] BYREF _DWORD v47[4]; // [xsp+40h] [xbp-80h] BYREF cocos2d::CCPoint EndPosition; // 0:kr08_8.8 cocos2d::SEL_CallFunc v49; // 0:x1.16 cocos2d::SEL_CallFunc v50; // 0:x1.16 cocos2d::SEL_CallFunc v51; // 0:x1.16 cocos2d::SEL_CallFunc v52; // 0:x1.16 m_platformerEndTrigger = a1->m_platformerEndTrigger; if ( m_platformerEndTrigger ) m_noEffects = m_platformerEndTrigger->m_noEffects; else m_noEffects = 0; v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4); v5.n128_f32[0] = *(float *)&v47[2] * 0.5; v6.n128_f32[0] = (float)(*(float *)&v47[3] * 0.5) + 35.0; sub_100022980(v5, v6, v47); if ( a1->m_isPracticeMode ) v7 = 1.0; else v7 = 1.1; if ( a1->m_isPracticeMode ) v8 = "GJ_practiceComplete_001.png"; else v8 = "GJ_levelComplete_001.png"; v9 = cocos2d::CCSprite::createWithSpriteFrameName(v8); ((void (__fastcall *)(PlayLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v9, 15); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v9->setPosition)(v9, v47); ((void (__fastcall *)(cocos2d::CCSprite *, float))v9->setScale)(v9, 0.01); v10 = cocos2d::CCScaleTo::create_1(0.66, v7); v11 = cocos2d::CCEaseElasticOut::create(v10, 0.6); cocos2d::CCDelayTime::create(0.88); v12 = cocos2d::CCScaleTo::create(0.22, 0.01, 0.01); cocos2d::CCEaseIn::create(v12, 2.0); cocos2d::CCHide::create(); v49.ptr = (void (*)(void))520; v49.adj = 1; cocos2d::CCCallFunc::create(v9, v49); v13 = (cocos2d::CCAction *)sub_10018A494(v11); cocos2d::CCNode::runAction(v9, v13); v14 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v9->getPosition)(v9); sub_1000229B8(&v46, v14); v15 = cocos2d::CCParticleSystemQuad::create("levelComplete01.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v15->setAutoRemoveOnFinish)(v15, 1); ((void (__fastcall *)(PlayLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, v15, 13); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64 *))v15->setPosition)(v15, &v46); m_player1 = a1->m_player1; b = m_player1->m_playerColor1.b; v18 = (float32x2_t)vdup_n_s32(0x437F0000u); v19.i16[0] = *(_WORD *)&m_player1->m_playerColor1.r; v19.i8[2] = m_player1->m_playerColor1.b; v19.i32[1] = (unsigned __int32)v19.i32[0] >> 8; v43 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v19, (int8x8_t)0xFF000000FFLL)), v18); v44 = (float)b / 255.0; v45 = 1065353216; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float32x2_t *))v15->setStartColor)(v15, &v43); v20 = a1->m_player1; v21 = v20->m_playerColor1.b; v22.i16[0] = *(_WORD *)&v20->m_playerColor1.r; v22.i8[2] = v20->m_playerColor1.b; v22.i32[1] = (unsigned __int32)v22.i32[0] >> 8; v43 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v22, (int8x8_t)0xFF000000FFLL)), v18); v44 = (float)v21 / 255.0; v45 = 1065353216; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float32x2_t *))v15->setEndColor)(v15, &v43); v23 = cocos2d::CCParticleSystemQuad::create("levelComplete01.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v23->setAutoRemoveOnFinish)(v23, 1); ((void (__fastcall *)(PlayLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->addChild_0)(a1, v23, 13); v24 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v15->getPosition)(v15); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v23->setPosition)(v23, v24); if ( !a1->m_isPracticeMode && !m_noEffects ) { v25 = cocos2d::CCDirector::sharedDirector(); v26 = sub_1001768E0(v25); v27 = CCCircleWave::create_1(10.0, v26, 0.8, 0); v27->m_lineWidth = 4; v28 = a1->m_player1; v29 = *(_WORD *)&v28->m_playerColor1.r; v27->m_color.b = v28->m_playerColor1.b; *(_WORD *)&v27->m_color.r = v29; EndPosition = PlayLayer::getEndPosition(a1); ((void (__fastcall *)(CCCircleWave *, float32x2_t *, float, float))v27->setPosition)( v27, &v43, EndPosition.x, EndPosition.y); ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a1->m_objectLayer->addChild_0)( a1->m_objectLayer, v27, 0); v30 = CCCircleWave::create_1(10.0, 250.0, 0.8, 0); v30->m_lineWidth = 4; v31 = a1->m_player1; v32 = *(_WORD *)&v31->m_playerColor1.r; v30->m_color.b = v31->m_playerColor1.b; *(_WORD *)&v30->m_color.r = v32; v33 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v9->getPosition)(v9); ((void (__fastcall *)(CCCircleWave *, __int64))v30->setPosition)(v30, v33); ((void (__fastcall *)(PlayLayer *, CCCircleWave *, __int64))a1->addChild_0)(a1, v30, 9); for ( i = 0; i != 5; ++i ) { v35 = cocos2d::CCDelayTime::create((float)i * 0.05); v50.ptr = (void (*)(void))PlayLayer::spawnCircle; v50.adj = 0; cocos2d::CCCallFunc::create(a1, v50); v36 = (cocos2d::CCAction *)sub_10018A494(v35); cocos2d::CCNode::runAction(a1, v36); } for ( j = 0; j != 10; ++j ) { v38 = rand(); v39 = cocos2d::CCDelayTime::create((float)((float)((float)(vcvts_n_f32_s32(v38, 0x1Fu) * 2.0) + -1.0) * 0.08) + (float)((float)j * 0.15)); v51.ptr = (void (*)(void))PlayLayer::spawnFirework; v51.adj = 0; cocos2d::CCCallFunc::create(a1, v51); v40 = (cocos2d::CCAction *)sub_10018A494(v39); cocos2d::CCNode::runAction(a1, v40); } } v41 = cocos2d::CCDelayTime::create(1.5); v52.ptr = (void (*)(void))PlayLayer::showEndLayer; v52.adj = 0; cocos2d::CCCallFunc::create(a1, v52); v42 = (cocos2d::CCAction *)sub_10018A494(v41); cocos2d::CCNode::runAction(a1, v42); }
GD Web Decomp Icon

GD Web Decomp

Raw Source