// // GJBaseGameLayer::getMinPortalY from 0x859f80 to 0x85a068 (232 bytes) // // 6 xrefs: // > PlayerObject::spiderTestJumpInternal @ 0x634488 // > PlayerObject::spiderTestJumpY @ 0x635e0c // > DrawGridLayer::draw @ 0x66699c // > GJBaseGameLayer::getMaxPortalY @ 0x85a098 // > GJBaseGameLayer::checkCollisions @ 0x894b48 // > @ 0x920e8 // // 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 // float GJBaseGameLayer::getMinPortalY(GJBaseGameLayer *a1) { float result; // s0 float y; // s8 float v4; // s8 if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 ) { result = (float)((float)((float)(*(float *)&a1->m_gameState.m_unkInt11 * -0.5) / a1->m_gameState.m_cameraZoom) + *(float *)&a1->m_gameState.m_unkInt14) + a1->m_gameState.m_cameraOffset.y; if ( result > 90.0 ) return result; return 90.0; } y = a1->m_gameState.m_cameraPosition2.y; if ( (float)(y + (float)((float)(a1->m_groundLayer->getPosition(a1->m_groundLayer)->y - 1.0) / a1->m_gameState.m_cameraZoom)) <= 90.0 ) return 90.0; v4 = a1->m_gameState.m_cameraPosition2.y; return v4 + (float)((float)(a1->m_groundLayer->getPosition(a1->m_groundLayer)->y - 1.0) / a1->m_gameState.m_cameraZoom); }
GD Web Decomp Icon

GD Web Decomp

Raw Source