// // PlayerObject::reversePlayer from 0x140398430 to 0x14039850f (223 bytes) // // 6 xrefs: // > GJBaseGameLayer::collisionCheckObjects @ 0x14021594c // > GJBaseGameLayer::bumpPlayer @ 0x140217b3f // > PlayerObject::ringJump @ 0x140398d90 // > @ 0x140697fb4 // > @ 0x140697fc4 // > @ 0x1406d650c // // 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 PlayerObject::reversePlayer(PlayerObject *a1, EffectGameObject *a2) { float v2; // xmm0_4 const cocos2d::CCPoint *v5; // rax __int64 v6; // rax float v7; // xmm0_4 _BYTE v8[16]; // [rsp+20h] [rbp-28h] BYREF float v9; // [rsp+50h] [rbp+8h] BYREF float v10; // [rsp+54h] [rbp+Ch] char v11; // [rsp+60h] [rbp+18h] BYREF if ( !a1->m_isPlatformer ) { if ( a2 && a1->m_reverseSync ) { cocos2d::CCPoint::CCPoint(v2, a1->m_maybeReverseSpeed); v5 = a1->getPosition_0(a1); cocos2d::CCPoint::operator+(v5, &v11); v6 = ((__int64 (__fastcall *)(EffectGameObject *, _BYTE *))a2->getRealPosition)(a2, v8); cocos2d::CCPoint::operator-(v6, &v9, &v11); if ( a1->m_isSideways ) v7 = v10; else v7 = v9; a1->m_maybeReverseSpeed = (float)(v7 + v7) + a1->m_maybeReverseSpeed; } PlayerObject::doReversePlayer(a1, !a1->m_isGoingLeft); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source