// // GJBaseGameLayer::destroyObject from 0x140216090 to 0x1402161ae (286 bytes) // // 9 xrefs: // > GJBaseGameLayer::collisionCheckObjects @ 0x140215c2e // > GJBaseGameLayer::collisionCheckObjects @ 0x140215d2b // > PlayerObject::collidedWithObjectInternal @ 0x14039285e // > PlayerObject::collidedWithObjectInternal @ 0x140392e85 // > PlayerObject::collidedWithObjectInternal @ 0x140393ba7 // > @ 0x14067f2f0 // > @ 0x14067f324 // > @ 0x1406cd0d4 // > @ 0x1406cd0e0 // // 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::destroyObject(GJBaseGameLayer *a1, GameObject *a2) { cocos2d::CCSprite *m_colorSprite; // rcx int v5; // esi cocos2d::CCPoint v6; // rax cocos2d::CCRGBAProtocol_vtbl *v7; // rax cocos2d::CCPoint v8; // [rsp+48h] [rbp+10h] BYREF if ( a2->getType(a2) == Collectible && !a2->m_hasNoEffects && !a2->m_isInvisible && (a2->getOpacity(&a2->cocos2d::CCRGBAProtocol) || (m_colorSprite = a2->m_colorSprite) != nullptr && m_colorSprite->getOpacity(&m_colorSprite->cocos2d::CCRGBAProtocol)) ) { v5 = HIDWORD(a2[1].CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable); if ( v5 <= 0 ) { GameObject::spawnDefaultPickupParticle(a2, a1); } else { a2->getPosition_0(a2); cocos2d::CCPoint::CCPoint(&v8); GJBaseGameLayer::spawnParticleTrigger(a1, v5, v6, 0.0, 1.0); } } GameObject::playDestroyObjectAnim(a2, a1); a2->m_isDisabled = 1; v7 = a2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable; a2->m_isDisabled2 = 1; v7->setOpacity(&a2->cocos2d::CCRGBAProtocol, 0); if ( a2->getType(a2) == Breakable ) GJBaseGameLayer::gameEventTriggered(a1, DestroyBlock, 0, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source