// // GJBaseGameLayer::checkCameraLimitAfterTeleport from 0x87f874 to 0x87f960 (236 bytes) // // 5 xrefs: // > PlayerObject::spiderTestJumpInternal @ 0x634438 // > PlayerObject::spiderTestJumpY @ 0x636250 // > PlayerObject::spiderTestJumpX @ 0x636ca4 // > GJBaseGameLayer::teleportPlayer @ 0x889eb0 // > @ 0x86418 // // 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 *v4; // x0 float v7; // [xsp+44h] [xbp+44h] cocos2d::CCSize WinSize; // 0:kr00_8.8 if ( a1->m_gameState.m_unkPoint17.y == 0.0 && !a2->m_isSideways ) { v4 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v4); if ( *(float *)(((__int64 (__fastcall *)(PlayerObject *, float, float))a2->getPosition)( a2, WinSize.width, WinSize.height) + 4) > (float)(a3 + (float)(a1->m_gameState.m_cameraPosition.y + v7)) || a2->getPosition(a2)->y < (float)(a1->m_gameState.m_cameraPosition.y - a3) ) { a1->m_gameState.m_unkBool29 = 1; GJBaseGameLayer::updateCamera(a1, 0.0); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source