// // PlayerObject::bumpPlayer from 0x637360 to 0x6374a4 (324 bytes) // // 2 xrefs: // > GJBaseGameLayer::bumpPlayer @ 0x88b488 // > @ 0x9ad88 // // 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::bumpPlayer(PlayerObject *a1, float a2, int a3, bool a4, GameObject *a5) { float v7; // s0 float v8; // s1 float v9; // s0 bool isFacingDown; // w0 _BOOL4 m_isUpsideDown; // w1 bool isFacingLeft; // w0 GameObject *v13; // [xsp+28h] [xbp+28h] GameObject *v14; // [xsp+28h] [xbp+28h] GameObject *v15; // [xsp+28h] [xbp+28h] GameObject *v16; // [xsp+28h] [xbp+28h] if ( !a1->m_isPlatformer && a1->m_fixRobotJump ) { if ( a3 != 44 ) goto LABEL_4; LABEL_12: if ( a5 ) { if ( a1->m_isSideways ) { v16 = a5; isFacingLeft = GameObject::isFacingLeft(a5); m_isUpsideDown = a1->m_isUpsideDown; a5 = v16; if ( m_isUpsideDown != isFacingLeft ) goto LABEL_15; if ( a1->m_isSideways ) goto LABEL_16; } v13 = a5; isFacingDown = GameObject::isFacingDown(a5); m_isUpsideDown = a1->m_isUpsideDown; a5 = v13; if ( m_isUpsideDown != isFacingDown ) { LABEL_15: v14 = a5; PlayerObject::flipGravity(a1, !m_isUpsideDown, 1); a5 = v14; } } LABEL_16: v15 = a5; PlayerObject::spiderTestJump(a1, 0); PlayerObject::playBumpEffect(a1, 44, v15); return; } a1->m_touchedPad = 1; if ( a3 == 44 ) goto LABEL_12; LABEL_4: PlayerObject::propellPlayer(a1, a2, a4, a3); if ( a1->m_isPlatformer && !a1->m_isRotating ) { if ( a3 == 34 ) v9 = 1.2; else v9 = 1.0; PlayerObject::animatePlatformerJump(a1, v9); } if ( a3 == 34 ) { a1->m_isAccelerating = 1; cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, v7, v8); } else { a1->m_isAccelerating = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source