// // PlayerObject::testForMoving from 0x623000 to 0x623148 (328 bytes) // // 2 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x8952d8 // > @ 0x376e0 // // 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 // bool PlayerObject::testForMoving(PlayerObject *a1, float a2, GameObject *a3) { const cocos2d::CCPoint *LastPosition; // x0 bool result; // w0 bool v7; // nf bool v8; // cc const cocos2d::CCRect *v9; // x0 _BOOL4 m_isUpsideDown; // w0 cocos2d::CCRect *v11; // x0 cocos2d::CCPoint v13; // [xsp+58h] [xbp+58h] BYREF __int64 v14; // [xsp+60h] [xbp+60h] BYREF cocos2d::CCRect v15; // [xsp+68h] [xbp+68h] BYREF LastPosition = GameObject::getLastPosition(a3); cocos2d::CCPoint::CCPoint(&v13, LastPosition); ((void (__fastcall *)(__int64 *__return_ptr, GameObject *))a3->getRealPosition)(&v14, a3); if ( *(float *)&v14 == v13.x ) { result = 0; if ( *((float *)&v14 + 1) == v13.y ) return result; result = a1->m_isUpsideDown; v7 = v13.y < *((float *)&v14 + 1); v8 = v13.y <= *((float *)&v14 + 1); if ( !result ) goto LABEL_3; } else { result = a1->m_isUpsideDown; v7 = v13.y < *((float *)&v14 + 1); v8 = v13.y <= *((float *)&v14 + 1); if ( !result ) { LABEL_3: if ( v8 ) return result; goto LABEL_4; } } if ( !v7 ) return 0; LABEL_4: v9 = a3->getObjectRect(a3); cocos2d::CCRect::CCRect(&v15, v9); m_isUpsideDown = a1->m_isUpsideDown; v15.size.height = v15.size.height + (float)(a2 * 5.0); if ( m_isUpsideDown ) v15.origin.y = v15.origin.y - (float)(a2 * 5.0); v11 = (cocos2d::CCRect *)a1->getObjectRect(a1); result = cocos2d::CCRect::intersectsRect(v11, &v15); if ( result ) a1->m_collidedObject = a3; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source