// // MenuGameLayer::update from 0x6c9814 to 0x6c9aec (728 bytes) // // 2 xrefs: // > @ 0xbde28 // > @ 0x1158a58 // // 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 MenuGameLayer::update(MenuGameLayer *a1, float a2) { float v4; // s11 cocos2d::CCDirector *v5; // x0 PlayerObject *m_playerObject; // x22 const cocos2d::CCPoint *v7; // x0 float v8; // s0 float v9; // s1 PlayerObject *v10; // x0 float m_vehicleSize; // s2 float m_unkAngle1; // s9 cocos2d::CCDirector *v13; // x0 float v14; // s0 float v15; // s9 float v16; // s0 float v17; // s1 float m_backgroundWrapPosition; // s2 float x; // s0 GJGroundLayer *m_groundLayer; // x22 float v21; // s0 float m_textureWidth; // s2 PlayerObject *v23; // x22 void (__fastcall *setPosition)(PlayerObject *__hidden, const cocos2d::CCPoint *); // x23 float *v25; // x0 float v26; // [xsp+68h] [xbp+68h] cocos2d::CCPoint v27; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint v28; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v29; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCPoint v30; // 0:s0.4,4:s1.4 v4 = 0.0; v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); a1->m_deltaCount = a1->m_deltaCount + a2; MenuGameLayer::updateColors(a1); m_playerObject = a1->m_playerObject; v7 = m_playerObject->getPosition(m_playerObject); cocos2d::CCPoint::CCPoint(&v29, v7); cocos2d::CCPoint::operator=(&m_playerObject->m_shipRotation, v8, v9); PlayerObject::updateInternalActions(a1->m_playerObject, a2); a1->m_playerObject->update(a1->m_playerObject, a2 * 60.0); v10 = a1->m_playerObject; m_vehicleSize = v10->m_vehicleSize; m_unkAngle1 = v10->m_unkAngle1; v10->m_totalTime = a1->m_deltaCount; if ( m_vehicleSize != 1.0 ) v4 = (float)(m_unkAngle1 * (float)(1.0 - m_vehicleSize)) * 0.5; v13 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v13); v15 = (float)((float)(v14 + 90.0) + (float)(m_unkAngle1 * 0.5)) - v4; if ( v15 > a1->m_playerObject->getPosition(a1->m_playerObject)->y ) { v23 = a1->m_playerObject; setPosition = v23->setPosition; v25 = (float *)v23->getPosition(v23); cocos2d::CCPoint::CCPoint(&v29, *v25, v15); setPosition(v23, &v29); PlayerObject::hitGround(a1->m_playerObject, nullptr, 0); } PlayerObject::updateRotation(a1->m_playerObject, a2 * 60.0); if ( a1->m_playerObject->getPosition(a1->m_playerObject)->x > (float)(v26 + 100.0) ) MenuGameLayer::resetPlayer(a1); cocos2d::CCPoint::CCPoint( &v29, a1->m_realBackgroundPosition.x + (float)((float)((float)(a2 * 60.0) * 5.77) * 0.9), 0.0); cocos2d::CCPoint::operator=(&a1->m_realBackgroundPosition, v16, v17); cocos2d::CCPoint::CCPoint( &v27, (float)-a1->m_realBackgroundPosition.x * 0.1, (float)-a1->m_realBackgroundPosition.y * 0.1); m_backgroundWrapPosition = a1->m_backgroundWrapPosition; x = v27.x; if ( (float)-m_backgroundWrapPosition > v27.x ) { do x = x + m_backgroundWrapPosition; while ( x < (float)-m_backgroundWrapPosition ); v27.x = x; } a1->m_backgroundSprite->setPosition(a1->m_backgroundSprite, &v27); cocos2d::CCPoint::CCPoint(&v28, -a1->m_realBackgroundPosition.x, 0.0); m_groundLayer = a1->m_groundLayer; v21 = v28.x; m_textureWidth = m_groundLayer->m_textureWidth; if ( (float)-m_textureWidth > v28.x ) { do v21 = v21 + m_textureWidth; while ( v21 < (float)-m_textureWidth ); v28.x = v21; } cocos2d::CCPoint::CCPoint(&v29, &v28); GJGroundLayer::updateGroundPos(m_groundLayer, v30); PlayerObject::updateEffects(a1->m_playerObject, a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source