// // GJBaseGameLayer::checkCollisionBlocks from 0x46fdf0 to 0x46ff22 (306 bytes) // // 2 xrefs: // > GJBaseGameLayer::updateCollisionBlocks @ 0x4739ca // > GJBaseGameLayer::updateCollisionBlocks @ 0x473a1a // // 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::checkCollisionBlocks( GJBaseGameLayer *a1, EffectGameObject *a2, std::vector *a3, int a4) { const cocos2d::CCRect *v8; // r0 float v9; // s16 float v10; // s17 float v11; // s18 int v12; // r6 float v13; // s19 OBB2D *v14; // r7 EffectGameObject *v15; // r5 cocos2d::CCRect *ObjectRectPointer; // r0 float y; // s15 OBB2D *v18; // r9 int m_uniqueID; // [sp+0h] [bp-24h] cocos2d::CCRect v20; // [sp+Ch] [bp-18h] BYREF m_uniqueID = a2->m_uniqueID; v8 = a2->getObjectRect(a2); cocos2d::CCRect::CCRect(&v20, v8); v9 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(&v20)); v10 = COERCE_FLOAT(cocos2d::CCRect::getMinX(&v20)); v11 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(&v20)); v12 = 0; v13 = COERCE_FLOAT(cocos2d::CCRect::getMinY(&v20)); v14 = a2->getOrientedBox(a2); while ( v12 < a4 ) { v15 = a3->m_start[v12]; if ( !v15->m_isGroupDisabled ) { ObjectRectPointer = GameObject::getObjectRectPointer(a3->m_start[v12]); if ( v9 >= ObjectRectPointer->origin.x && (float)(ObjectRectPointer->origin.x + ObjectRectPointer->size.width) >= v10 ) { y = ObjectRectPointer->origin.y; if ( v11 >= y && (float)(y + ObjectRectPointer->size.height) >= v13 && v15->m_uniqueID != m_uniqueID ) { if ( !a2->m_shouldUseOuterOb && !v15->m_shouldUseOuterOb || (v18 = v15->getOrientedBox(v15), OBB2D::overlaps1Way(v14)) && OBB2D::overlaps1Way(v18) ) { a1->objectsCollided(a1, a2->m_itemID, v15->m_itemID); } } } } ++v12; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source