// // GJBaseGameLayer::getMinPortalY from 0x46f0bc to 0x46f172 (182 bytes) // // 5 xrefs: // > PlayerObject::spiderTestJumpInternal @ 0x348b96 // > PlayerObject::spiderTestJumpY @ 0x34a2a6 // > DrawGridLayer::draw @ 0x36b9f6 // > GJBaseGameLayer::getMaxPortalY @ 0x46f1c2 // > GJBaseGameLayer::checkCollisions @ 0x4935a6 // // 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 *p_y; // r5 float y; // s16 float v4; // s15 float v5; // s16 if ( a1->m_gameState.m_unkPoint17.y == 0.0 || a1->m_gameState.m_unkBool1 ) { v4 = (float)((float)((float)-(float)(0.5 * *(float *)&a1->m_gameState.m_unkInt11) / a1->m_gameState.m_cameraZoom) + *(float *)&a1->m_gameState.m_unkInt14) + a1->m_gameState.m_cameraOffset.y; if ( v4 > 90.0 ) return v4; } else { p_y = &a1->m_gameState.m_cameraPosition2.y; 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 ) { v5 = *p_y; return v5 + (float)((float)(a1->m_groundLayer->getPosition(a1->m_groundLayer)->y - 1.0) / a1->m_gameState.m_cameraZoom); } } return 90.0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source