// // EndPortalObject::getSpawnPos from 0x10039c890 to 0x10039c90c (124 bytes) // // 2 xrefs: // > PlayLayer::checkForEnd @ 0x1000baf58 // > PlayLayer::checkForEnd @ 0x1000baf97 // // 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 // cocos2d::CCPoint __fastcall EndPortalObject::getSpawnPos(EndPortalObject *a1) { __int64 v1; // rsi PlayLayer *m_playLayer; // rax float v3; // xmm1_4 float v5; // [rsp+Ch] [rbp-14h] cocos2d::CCPoint result; // 0:xmm0_8.8 v5 = *(float *)(v1 + 960); m_playLayer = GameManager::sharedState()->m_playLayer; if ( *(_BYTE *)(v1 + 1360) ) v3 = -1.0; else v3 = 1.0; result.y = 0.0; result.x = (float)((float)(-300.0 / m_playLayer->m_gameState.m_cameraZoom) * v3) + v5; sub_10028CBE0((float *)a1, result.x, *(float *)(v1 + 964)); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source