// // GJBaseGameLayer::gravBumpPlayer from 0x4921ac to 0x492292 (230 bytes) // // 1 xrefs: // > GJBaseGameLayer::collisionCheckObjects @ 0x492a78 // // 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 GJBaseGameLayer::gravBumpPlayer(GJBaseGameLayer *a1, PlayerObject *a2, EffectGameObject *a3) { bool isFacingLeft; // r0 int v7; // r6 const cocos2d::CCPoint *v8; // r11 int v9; // r2 bool v10; // r3 bool m_hasNoEffects; // r2 cocos2d::CCPoint v12; // [sp+4h] [bp-18h] BYREF _BYTE v13[8]; // [sp+Ch] [bp-10h] BYREF if ( a2->m_isSideways ) isFacingLeft = GameObject::isFacingLeft(a3); else isFacingLeft = GameObject::isFacingDown(a3); v7 = !isFacingLeft; if ( a2->m_isUpsideDown != v7 && GJBaseGameLayer::canBeActivatedByPlayer(a1, a2, a3) ) { if ( a3->m_isReverse ) PlayerObject::reversePlayer(a2, a3); if ( !a3->m_hasNoEffects ) a1->playGravityEffect(a1, v7); v8 = a3->getPosition(a3); cocos2d::CCPoint::CCPoint(&v12, 0.0, -10.0); cocos2d::CCPoint::operator+(v13, v8, &v12); cocos2d::CCPoint::operator=((PlayerObject *)&a2->m_lastPortalPos, COERCE_FLOAT(v13), v9, v10); a3->activatedByPlayer(a3, a2); m_hasNoEffects = a3->m_hasNoEffects; a2->m_lastActivatedPortal = a3; PlayerObject::propellPlayer(a2, 0.8, m_hasNoEffects, 10); GJBaseGameLayer::flipGravity(a1, a2, v7, 1); a2->m_padRingRelated = 1; GJBaseGameLayer::gameEventTriggered(a1, GravityPad, 0, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source