// // GJBaseGameLayer::updateMaxGameplayY from 0x14023aec0 to 0x14023af99 (217 bytes) // // 5 xrefs: // > LevelEditorLayer::onPlaytest @ 0x1402dfe18 // > PlayLayer::createObjectsFromSetupFinished @ 0x1403adc22 // > @ 0x1406817e0 // > @ 0x140681838 // > @ 0x1406ce1fc // // 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::updateMaxGameplayY(GJBaseGameLayer *a1) { LevelSettingsObject *m_levelSettings; // rax cocos2d::CCArray *m_objects; // rax float v4; // xmm6_4 cocos2d::ccArray *data; // rbx __int64 num; // rax cocos2d::CCObject **arr; // rbx cocos2d::CCObject **i; // rsi cocos2d::CCObject *v9; // rcx m_levelSettings = a1->m_levelSettings; if ( m_levelSettings && (m_levelSettings->m_platformerMode || m_levelSettings->m_dynamicLevelHeight) ) { m_objects = a1->m_objects; v4 = 1200.0; if ( m_objects ) { data = m_objects->data; num = data->num; if ( (_DWORD)num ) { arr = data->arr; for ( i = &arr[num - 1]; arr <= i; v4 = fmaxf(*(float *)(((__int64 (__fastcall *)(cocos2d::CCObject *))v9->__vftable[2].getTag)(v9) + 4), v4) ) { v9 = *arr; if ( !*arr ) break; ++arr; } } } a1->m_maxGameplayY = (float)(v4 + 90.0) + 300.0; } else { a1->m_maxGameplayY = 2790.0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source