// // PlayLayer::playEndAnimationToPos from 0x310a48 to 0x310cce (646 bytes) // // 1 xrefs: // > EndPortalObject::triggerObject @ 0x3fedee // // 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::playEndAnimationToPos(PlayLayer *a1, cocos2d::CCPoint a2) { float x; // r9 float y; // s15 cocos2d::CCDirector *v5; // r0 EndPortalObject **p_m_endPortal; // r10 int v7; // r5 int v8; // r11 PlayerObject *m_player2; // r6 float v10; // s16 const cocos2d::CCPoint *v11; // r0 const cocos2d::_ccBezierConfig *v12; // r2 cocos2d::CCActionInterval *v13; // r0 cocos2d::CCEaseIn *v14; // r7 cocos2d::CCFiniteTimeAction *v15; // r0 cocos2d::CCAction *v16; // r1 cocos2d::CCNode *v17; // r0 float v18; // r2 cocos2d::CCActionInterval *v19; // r0 cocos2d::CCEaseIn *v20; // r0 float v21; // [sp+10h] [bp-54h] cocos2d::CCPoint v22; // [sp+24h] [bp-40h] BYREF float v23; // [sp+2Ch] [bp-38h] BYREF float v24; // [sp+30h] [bp-34h] cocos2d::CCPoint v25; // [sp+34h] [bp-30h] BYREF void (*v26)(PlayLayer *); // [sp+3Ch] [bp-28h] BYREF int v27; // [sp+40h] [bp-24h] cocos2d::CCPoint v28; // [sp+44h] [bp-20h] BYREF cocos2d::CCPoint v29; // [sp+4Ch] [bp-18h] BYREF cocos2d::CCPoint v30; // [sp+54h] [bp-10h] BYREF x = a2.x; if ( !a1->m_levelEndAnimationStarted ) { y = a1->m_gameState.m_unkPoint6.y; a1->m_levelEndAnimationStarted = 1; if ( y != 0.0 ) { v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCSize *)&v25, v5); cocos2d::CCPoint::CCPoint( &v28, (float)(v25.x * 0.5) / a1->m_gameState.m_cameraZoom, (float)(v25.y * 0.5) / a1->m_gameState.m_cameraZoom); cocos2d::CCPoint::operator+(&v26, &a1->m_gameState.m_cameraPosition2, &v28); cocos2d::CCPoint::operator-(&v28, &v26, &a1->m_gameState.m_cameraOffset); cocos2d::CCPoint::operator=(&v26, &v28); *(_DWORD *)(LODWORD(x) + 4) = v27; } ((void (__fastcall *)(PlayLayer *, int))a1->updateTimeWarp)(a1, 1065353216); p_m_endPortal = &a1->m_endPortal; GJBaseGameLayer::updateCameraOffsetX(a1, a1->m_gameState.m_cameraOffset.x, 0.0, 0, 0.0, -1, -1); v7 = 0; GJBaseGameLayer::updateCameraOffsetY(a1, a1->m_gameState.m_cameraOffset.y, 0.0, 0, 0.0, -1, -1); cocos2d::CCPoint::CCPoint(&v28, (const cocos2d::CCPoint *)LODWORD(x)); GJBaseGameLayer::updateStaticCameraPos( a1, (cocos2d::CCPoint)(unsigned int)&v28, 1, 0, 154, COERCE_FLOAT(1), 1072064102, v21); if ( a1->m_gameState.m_isDualMode ) v8 = 2; else v8 = 1; do { if ( v7 ) m_player2 = a1->m_player2; else m_player2 = a1->m_player1; PlayerObject::lockPlayer(m_player2); PlayerObject::playingEndEffect(m_player2); PlayerObject::toggleGhostEffect(m_player2, Enabled); if ( *p_m_endPortal ) { v10 = -1.0; if ( !(*p_m_endPortal)->m_flippedX ) v10 = 1.0; } else { v10 = 1.0; } v11 = m_player2->getPosition(m_player2); cocos2d::CCPoint::CCPoint(&v22, v11); cocos2d::CCPoint::CCPoint(&v28, v10 * 50.0, 0.0); cocos2d::CCPoint::operator+(&v23, LODWORD(x), &v28); cocos2d::CCPoint::CCPoint(&v28); cocos2d::CCPoint::CCPoint(&v29); cocos2d::CCPoint::CCPoint(&v30); cocos2d::CCPoint::CCPoint(&v25, v22.x, v22.y); cocos2d::CCPoint::operator=(&v29, &v25); cocos2d::CCPoint::CCPoint(&v25, v22.x + (float)(v10 * 40.0), v24 + 150.0); cocos2d::CCPoint::operator=(&v30, &v25); cocos2d::CCPoint::CCPoint(&v25, v23, v24 - 20.0); cocos2d::CCPoint::operator=(&v28, &v25); v13 = (cocos2d::CCActionInterval *)cocos2d::CCBezierTo::create( (cocos2d::CCBezierTo *)0x3F800000, COERCE_FLOAT(&v28), v12); v14 = cocos2d::CCEaseIn::create(v13, 1.2); if ( v7 ) { v17 = m_player2; v16 = v14; } else { v27 = 0; v26 = PlayLayer::levelComplete; v15 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, PlayLayer::levelComplete, 0); v16 = (cocos2d::CCAction *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v14, v15, 0); v17 = m_player2; } cocos2d::CCNode::runAction(v17, v16); ++v7; v19 = (cocos2d::CCActionInterval *)cocos2d::CCRotateBy::create((cocos2d::CCRotateBy *)0x3F800000, 360.0, v18); v20 = cocos2d::CCEaseIn::create(v19, 1.5); cocos2d::CCNode::runAction(m_player2, v20); } while ( v7 != v8 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source