// // PlayerObject::updateCollide from 0x140393ff0 to 0x140394200 (528 bytes) // // 7 xrefs: // > GJBaseGameLayer::checkCollisions @ 0x140213b94 // > GJBaseGameLayer::checkCollisions @ 0x140213bf7 // > GJBaseGameLayer::checkCollisions @ 0x140213e67 // > GJBaseGameLayer::checkCollisions @ 0x140214120 // > PlayerObject::collidedWithSlopeInternal @ 0x14039083b // > PlayerObject::collidedWithSlopeInternal @ 0x14039096c // > @ 0x1406d62b4 // // 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 PlayerObject::updateCollide(PlayerObject *a1, PlayerCollisionDirection a2, GameObject *a3) { float v6; // xmm8_4 float v7; // xmm7_4 __int32 v8; // edi __int32 v9; // edi const cocos2d::CCPoint *v10; // rax const cocos2d::CCPoint *v11; // rax int v12; // edi float v13; // xmm2_4 int m_uniqueID; // eax double m_collidedBottomMaxY; // xmm1_8 double v16; // xmm2_8 double v17; // xmm1_8 cocos2d::CCDictionary *m_collisionLogBottom; // rcx int v19; // edi float v20; // xmm0_4 double m_collidedTopMinY; // xmm1_8 double v22; // xmm2_8 double v23; // xmm1_8 v6 = a1->getObjectRect_0(a1)->size.height * 0.5; v7 = a1->getObjectRect_0(a1)->size.width * 0.5; if ( a2 ) { v8 = a2 - 1; if ( v8 ) { v9 = v8 - 1; if ( v9 ) { if ( v9 == 1 ) { v10 = a1->getPosition_0(a1); PlayerObject::updateCollideRight(a1, v7 + v10->x, a3); } } else { v11 = a1->getPosition_0(a1); PlayerObject::updateCollideLeft(a1, v11->x - v7, a3); } return; } v12 = -1; if ( !a1->m_isUpsideDown ) v12 = 1; v13 = a1->getPosition_0(a1)->y - (float)((float)v12 * v6); if ( a3 ) m_uniqueID = a3->m_uniqueID; else m_uniqueID = 0; m_collidedBottomMaxY = a1->m_collidedBottomMaxY; v16 = v13; if ( m_collidedBottomMaxY != 0.0 ) { if ( a1->m_isUpsideDown ) v17 = fmin(m_collidedBottomMaxY, v16); else v17 = fmax(m_collidedBottomMaxY, v16); v16 = v17; } a1->m_collidedBottomMaxY = v16; if ( m_uniqueID && m_uniqueID != a1->m_lastCollisionBottom ) { m_collisionLogBottom = a1->m_collisionLogBottom; a1->m_lastCollisionBottom = m_uniqueID; goto LABEL_33; } } else { v19 = -1; if ( !a1->m_isUpsideDown ) v19 = 1; v20 = (float)((float)v19 * v6) + a1->getPosition_0(a1)->y; if ( a3 ) m_uniqueID = a3->m_uniqueID; else m_uniqueID = 0; m_collidedTopMinY = a1->m_collidedTopMinY; v22 = v20; if ( m_collidedTopMinY != 0.0 ) { if ( a1->m_isUpsideDown ) v23 = fmax(m_collidedTopMinY, v22); else v23 = fmin(m_collidedTopMinY, v22); v22 = v23; } a1->m_collidedTopMinY = v22; if ( m_uniqueID && m_uniqueID != a1->m_lastCollisionTop ) { m_collisionLogBottom = a1->m_collisionLogTop; a1->m_lastCollisionTop = m_uniqueID; LABEL_33: if ( m_collisionLogBottom ) cocos2d::CCDictionary::setObject(m_collisionLogBottom, a1->m_maybeLastGroundObject, m_uniqueID); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source