// // GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x140239ba0 to 0x140239c59 (185 bytes) // // 3 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x1402107ac // > PlayerObject::spiderTestJumpInternal @ 0x14039513c // > @ 0x1406ce1cc // // 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::checkCameraLimitAfterTeleport(GJBaseGameLayer *a1, PlayerObject *a2, float a3) { cocos2d::CCDirector *v5; // rax float v6; // [rsp+54h] [rbp+Ch] if ( a1->m_gameState.m_unkPoint17.y == 0.0 && !a2->m_isSideways ) { v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v5); if ( a2->getPosition_0(a2)->y > (float)((float)(v6 + a1->m_gameState.m_cameraPosition.y) + a3) || (float)(a1->m_gameState.m_cameraPosition.y - a3) > a2->getPosition_0(a2)->y ) { a1->m_gameState.m_unkBool29 = 1; GJBaseGameLayer::updateCamera(a1, 0.0); } } }