// // PlayLayer::showCompleteText from 0x1403a8900 to 0x1403a8f24 (1572 bytes) // // 6 xrefs: // > PlayLayer::showCompleteEffect @ 0x1403a9418 // > PlayLayer::levelComplete @ 0x1403a8874 // > PlayLayer::showCompleteEffect @ 0x1403a93d5 // > @ 0x1406991c0 // > @ 0x1406991d0 // > @ 0x1406d6bb4 // // 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::showCompleteText(PlayLayer *a1) { float v1; // xmm0_4 float v2; // xmm3_4 EndTriggerGameObject *m_platformerEndTrigger; // rax bool m_noEffects; // r13 cocos2d::CCDirector *v6; // rax bool m_isPracticeMode; // al float v8; // xmm8_4 const char *v9; // rcx struct cocos2d::CCSprite *v10; // rax PlayLayer_vtbl *v11; // r9 struct cocos2d::CCSprite *v12; // r12 struct cocos2d::CCScaleTo *v13; // rax struct cocos2d::CCEaseElasticOut *v14; // r14 struct cocos2d::CCDelayTime *v15; // rsi struct cocos2d::CCScaleTo *v16; // rax struct cocos2d::CCEaseIn *v17; // rdi __int64 v18; // rbx float v19; // eax int v20; // r12d struct cocos2d::CCSequence *v21; // rax cocos2d::CCPoint v22; // r14 cocos2d::ccColor3B *v23; // r8 struct cocos2d::CCParticleSystemQuad *v24; // rax _BOOL8 v25; // rdx cocos2d::CCNode *v26; // rsi PlayerObject *m_player1; // rax int b; // edx cocos2d::CCNode_vtbl *v29; // rax PlayerObject *v30; // rax int v31; // edx cocos2d::CCNode_vtbl *v32; // rax struct cocos2d::CCParticleSystemQuad *v33; // rax _BOOL8 v34; // rdx cocos2d::CCNode *v35; // rdi cocos2d::CCNode_vtbl *v36; // rbx __int64 v37; // rax __int64 v38; // rcx cocos2d::CCDirector *v39; // rax float ScreenRight; // xmm1_4 CCCircleWave *v41; // rbx EndPortalObject *m_endPortal; // rcx CCCircleWave *v43; // rdi CCCircleWave_vtbl *v44; // rbx __int64 v45; // rax int i; // edi __int64 v47; // rbx struct cocos2d::CCDelayTime *v48; // rax struct cocos2d::CCSequence *v49; // rax cocos2d::ccColor3B *v50; // r8 float v51; // xmm6_4 __int64 v52; // rbx struct cocos2d::CCDelayTime *v53; // rax struct cocos2d::CCSequence *v54; // rax cocos2d::ccColor3B *v55; // r8 __int64 v56; // rbx struct cocos2d::CCDelayTime *v57; // rax struct cocos2d::CCSequence *v58; // rax cocos2d::ccColor3B *v59; // r8 float v60; // [rsp+28h] [rbp-69h] float v61; // [rsp+28h] [rbp-69h] __int16 v62; // [rsp+38h] [rbp-59h] __int16 v63; // [rsp+38h] [rbp-59h] float v64; // [rsp+48h] [rbp-49h] cocos2d::CCPoint v65; // [rsp+50h] [rbp-41h] BYREF cocos2d::CCPoint v66; // [rsp+58h] [rbp-39h] BYREF CCLightFlash *v67; // [rsp+60h] [rbp-31h] BYREF float v68; // [rsp+68h] [rbp-29h] int v69; // [rsp+6Ch] [rbp-25h] m_platformerEndTrigger = a1->m_platformerEndTrigger; if ( m_platformerEndTrigger ) m_noEffects = m_platformerEndTrigger->m_noEffects; else m_noEffects = 0; v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v6); cocos2d::CCPoint::CCPoint(v1, v64 * 0.5); m_isPracticeMode = a1->m_isPracticeMode; if ( m_isPracticeMode ) v8 = 1.0; else v8 = 1.1; v9 = "GJ_practiceComplete_001.png"; if ( !m_isPracticeMode ) v9 = "GJ_levelComplete_001.png"; v10 = cocos2d::CCSprite::createWithSpriteFrameName(v9); v11 = a1->GJBaseGameLayer::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v67 = (CCLightFlash *)v10; v12 = v10; v11->addChild_0(a1, v10, 15); v12->setPosition_0(v12, &v65); ((void (__fastcall *)(struct cocos2d::CCSprite *))v12->setScale_0)(v12); v13 = cocos2d::CCScaleTo::create(0.66000003, v8); v14 = cocos2d::CCEaseElasticOut::create(v13, 0.60000002); v15 = cocos2d::CCDelayTime::create(0.88000005); v16 = cocos2d::CCScaleTo::create(0.22000001, 0.0099999998, 0.0099999998); v17 = cocos2d::CCEaseIn::create(v16, 2.0); v18 = cocos2d::CCHide::create(); LODWORD(v19) = cocos2d::CCCallFunc::create(v12, sub_14003BE70); v20 = 0; v60 = v19; v21 = cocos2d::CCSequence::create(v14, v15, v17, v18); v22 = (cocos2d::CCPoint)v67; cocos2d::CCNode::runAction(v67, (cocos2d::CCPoint)v21, v23, v2, v60); (*(void (__fastcall **)(cocos2d::CCPoint))(**(_QWORD **)&v22 + 200LL))(v22); cocos2d::CCPoint::CCPoint(&v66); v24 = cocos2d::CCParticleSystemQuad::create("levelComplete01.plist", 0); LOBYTE(v25) = 1; v26 = v24; v24->setAutoRemoveOnFinish(v24, v25); a1->addChild_0(a1, v26, 13); v26->setPosition_0(v26, &v66); m_player1 = a1->m_player1; b = m_player1->m_playerColor1.b; v62 = *(_WORD *)&m_player1->m_playerColor1.r; v69 = 1065353216; v29 = v26->__vftable; *((float *)&v67 + 1) = (float)HIBYTE(v62) / 255.0; *(float *)&v67 = (float)(unsigned __int8)v62 / 255.0; v68 = (float)b / 255.0; ((void (__fastcall *)(cocos2d::CCNode *, CCLightFlash **))v29[1].getChildren)(v26, &v67); v30 = a1->m_player1; v31 = v30->m_playerColor1.b; v63 = *(_WORD *)&v30->m_playerColor1.r; v69 = 1065353216; v32 = v26->__vftable; *((float *)&v67 + 1) = (float)HIBYTE(v63) / 255.0; *(float *)&v67 = (float)(unsigned __int8)v63 / 255.0; v68 = (float)v31 / 255.0; ((void (__fastcall *)(cocos2d::CCNode *, CCLightFlash **))v32[1].removeFromParent)(v26, &v67); v33 = cocos2d::CCParticleSystemQuad::create("levelComplete01.plist", 0); LOBYTE(v34) = 1; v35 = v33; v33->setAutoRemoveOnFinish(v33, v34); a1->addChild_0(a1, v35, 13); v36 = v35->__vftable; v37 = (__int64)v26->getPosition_0(v26); v36->setPosition_0(v35, (const cocos2d::CCPoint *)v37); if ( !a1->m_isPracticeMode && !m_noEffects ) { v39 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v38); ScreenRight = cocos2d::CCDirector::getScreenRight(v39); v41 = CCCircleWave::create(10.0, ScreenRight, 0.80000001, 0, 1); v41->m_lineWidth = 4; v41->m_color = a1->m_player1->m_playerColor1; if ( !a1->m_isPlatformer ) { m_endPortal = a1->m_endPortal; if ( m_endPortal ) { if ( !a1->m_platformerEndTrigger ) m_endPortal->getPosition_0(m_endPortal); } } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v67); v41->setPosition_0(v41, (const cocos2d::CCPoint *)&v67); a1->m_objectLayer->addChild_0(a1->m_objectLayer, v41, 0); v43 = CCCircleWave::create(10.0, 250.0, 0.80000001, 0, 1); v44 = v43->__vftable; v43->m_lineWidth = 4; v43->m_color = a1->m_player1->m_playerColor1; v45 = (*(__int64 (__fastcall **)(cocos2d::CCPoint))(**(_QWORD **)&v22 + 200LL))(v22); v44->setPosition_0(v43, (const cocos2d::CCPoint *)v45); a1->addChild_0(a1, v43, 9); for ( i = 0; i < 5; ++i ) { v47 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnCircle); v48 = cocos2d::CCDelayTime::create((float)i * 0.050000001); v49 = cocos2d::CCSequence::create(v48, v47, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v49, v50, v2, v61); } do { v51 = (float)rand(); v52 = cocos2d::CCCallFunc::create(a1, PlayLayer::spawnFirework); v53 = cocos2d::CCDelayTime::create( (float)((float)((float)((float)(v51 / 32767.0) + (float)(v51 / 32767.0)) - 1.0) * 0.079999998) + (float)((float)v20 * 0.15000001)); v54 = cocos2d::CCSequence::create(v53, v52, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v54, v55, v2, v61); ++v20; } while ( v20 < 10 ); } v56 = cocos2d::CCCallFunc::create(a1, PlayLayer::showEndLayer); v57 = cocos2d::CCDelayTime::create(1.5); v58 = cocos2d::CCSequence::create(v57, v56, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v58, v59, v2, v61); }
GD Web Decomp Icon

GD Web Decomp

Raw Source