// // PlayLayer::playPlatformerEndAnimationToPos from 0x1403ac3e0 to 0x1403ac6f4 (788 bytes) // // 2 xrefs: // > PlayLayer::activatePlatformerEndTrigger @ 0x1403ac3c5 // > @ 0x1406d6c50 // // 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::playPlatformerEndAnimationToPos(PlayLayer *a1, cocos2d::CCPoint a2, bool a3) { float v3; // xmm3_4 EndTriggerGameObject *m_platformerEndTrigger; // rax bool m_noEffects; // r15 int v8; // esi int v9; // r13d PlayerObject *m_player2; // rbx __int64 m_spiderSprite; // rcx double v12; // xmm0_8 __int64 v13; // rax double v14; // xmm0_8 __int64 v15; // rax struct cocos2d::CCBezierTo *v16; // rax struct cocos2d::CCEaseIn *v17; // rax cocos2d::ccColor3B *v18; // r8 struct cocos2d::CCFiniteTimeAction *v19; // r14 __int64 v20; // rax struct cocos2d::CCSequence *v21; // rdx struct cocos2d::CCRotateBy *v22; // rax struct cocos2d::CCEaseIn *v23; // rax cocos2d::ccColor3B *v24; // r8 float v25; // [rsp+28h] [rbp-69h] float v26; // [rsp+28h] [rbp-69h] __int64 v27; // [rsp+40h] [rbp-51h] BYREF __int64 v28; // [rsp+48h] [rbp-49h] BYREF cocos2d::CCPoint v29[2]; // [rsp+50h] [rbp-41h] BYREF cocos2d::CCPoint v30; // [rsp+F8h] [rbp+67h] BYREF cocos2d::CCPoint v31; // [rsp+100h] [rbp+6Fh] cocos2d::CCPoint v32; // [rsp+110h] [rbp+7Fh] BYREF v31 = a2; m_platformerEndTrigger = a1->m_platformerEndTrigger; if ( m_platformerEndTrigger ) m_noEffects = m_platformerEndTrigger->m_noEffects; else m_noEffects = 0; ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&a1->m_endPosition, a2); ((void (__fastcall *)(PlayLayer *))a1->updateTimeWarp)(a1); a1->m_gameState.m_unkPoint1.x = a1->m_gameState.m_cameraOffset.x; LODWORD(v30.x) = 15; sub_14024AC30(&a1->m_gameState.m_tweenActions._Traitsobj._Mypair._Myval2._Myval2, (unsigned __int8 *)&v30); a1->m_gameState.m_cameraOffset.x = a1->m_gameState.m_unkPoint1.x; a1->m_gameState.m_unkPoint1.y = a1->m_gameState.m_cameraOffset.y; LODWORD(v30.x) = 16; sub_14024AC30(&a1->m_gameState.m_tweenActions._Traitsobj._Mypair._Myval2._Myval2, (unsigned __int8 *)&v30); v8 = 0; v9 = a1->m_gameState.m_isDualMode + 1; a1->m_gameState.m_cameraOffset.y = a1->m_gameState.m_unkPoint1.y; do { if ( v8 ) m_player2 = a1->m_player2; else m_player2 = a1->m_player1; PlayerObject::lockPlayer(m_player2); if ( m_player2->m_isSpider ) { m_spiderSprite = (__int64)m_player2->m_spiderSprite; v28 = 112; v29[0] = (cocos2d::CCPoint)9LL; v27 = 0x6F6F6C5F6C6C6166LL; v29[1] = (cocos2d::CCPoint)15LL; CCAnimatedSprite::tweenToAnimation(m_spiderSprite, (void **)&v27, 0.40000001); } if ( !m_noEffects ) PlayerObject::toggleGhostEffect(m_player2, Enabled); if ( !a3 ) { m_player2->getPosition_0(m_player2); cocos2d::CCPoint::CCPoint(&v30); cocos2d::CCPoint::CCPoint(&v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28); v12 = cocos2d::CCPoint::CCPoint(v29); cocos2d::CCPoint::CCPoint(*(float *)&v12, v30.x); v14 = cocos2d::CCPoint::operator=(&v28, v13); cocos2d::CCPoint::CCPoint(*(float *)&v14, (float)((float)(v32.x - v30.x) * 0.5) + v30.x); cocos2d::CCPoint::operator=(v29, v15); cocos2d::CCPoint::operator=(&v27, &v32); v16 = cocos2d::CCBezierTo::create(1.0, (const struct cocos2d::_ccBezierConfig *)&v27); v17 = cocos2d::CCEaseIn::create(v16, 1.8); v19 = v17; if ( v8 ) { v21 = (struct cocos2d::CCSequence *)v17; } else { v20 = cocos2d::CCCallFunc::create(a1, PlayLayer::levelComplete); v21 = cocos2d::CCSequence::create(v19, v20, 0); } cocos2d::CCNode::runAction((CCLightFlash *)m_player2, (cocos2d::CCPoint)v21, v18, v3, v25); v22 = cocos2d::CCRotateBy::create(1.0, 360.0); v23 = cocos2d::CCEaseIn::create(v22, 1.8); cocos2d::CCNode::runAction((CCLightFlash *)m_player2, (cocos2d::CCPoint)v23, v24, v3, v26); } ++v8; } while ( v8 < v9 ); if ( a3 ) PlayLayer::levelComplete(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source