// // GameObject::playShineEffect from 0x6449c0 to 0x645750 (3472 bytes) // // 14 xrefs: // > EffectGameObject::triggerObject @ 0x77003c // > GJBaseGameLayer::teleportPlayer @ 0x889d74 // > GJBaseGameLayer::teleportPlayer @ 0x889f18 // > GJBaseGameLayer::collisionCheckObjects @ 0x88bca8 // > GJBaseGameLayer::collisionCheckObjects @ 0x88bd2c // > GJBaseGameLayer::collisionCheckObjects @ 0x88c050 // > GJBaseGameLayer::collisionCheckObjects @ 0x88c0fc // > GJBaseGameLayer::collisionCheckObjects @ 0x88c268 // > GJBaseGameLayer::collisionCheckObjects @ 0x88c2fc // > GJBaseGameLayer::collisionCheckObjects @ 0x88c3dc // > GJBaseGameLayer::collisionCheckObjects @ 0x88c47c // > GJBaseGameLayer::collisionCheckObjects @ 0x88c618 // > GJBaseGameLayer::collisionCheckObjects @ 0x88c6f4 // > @ 0x49590 // // 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 GameObject::playShineEffect(GameObject *a1) { int m_objectID; // w0 size_t v3; // x0 char *v4; // x1 char *v5; // x0 int v6; // w0 int v7; // w0 int v8; // w0 int v9; // w21 CCSpritePlus *v10; // x22 CCSpritePlus *v11; // x23 char **v12; // x1 CCSpritePlus *v13; // x20 unsigned int v14; // w27 GameManager *v15; // x0 void (__fastcall *setPosition)(CCSpritePlus *__hidden, const cocos2d::CCPoint *); // x27 void (__fastcall *setRotation)(CCSpritePlus *__hidden, float); // x27 void (__fastcall *setFlipX)(CCSpritePlus *__hidden, bool); // x27 _BOOL4 isFlipX; // w0 void (__fastcall *setFlipY)(CCSpritePlus *__hidden, bool); // x27 _BOOL4 isFlipY; // w0 void (__fastcall *setScaleX)(CCSpritePlus *__hidden, float); // x27 void (__fastcall *setScaleY)(CCSpritePlus *__hidden, float); // x27 __int64 *v24; // x0 cocos2d::CCNode *v25; // x0 unsigned int *v26; // x1 int v27; // w2 unsigned int *v28; // x1 int v29; // w2 cocos2d::CCNode *v30; // x20 void (__fastcall *v31)(CCSpritePlus *__hidden, const cocos2d::CCPoint *); // x21 float v32; // s8 __int64 v33; // x0 CCSpritePlus *v34; // x20 int v35; // w21 cocos2d::CCSequence *v36; // x28 cocos2d::CCFadeOut *v37; // x27 __int64 v38; // x26 __int64 v39; // x0 cocos2d::CCAction *v40; // x0 int v41; // w0 float v42; // s1 CCCircleWave *v43; // x20 void (__fastcall *v44)(CCCircleWave *__hidden, const cocos2d::CCPoint *); // x21 const cocos2d::CCPoint *v45; // x0 cocos2d::CCLayer *m_objectLayer; // x21 void (__fastcall *addChild_0)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // x22 cocos2d::CCNode *v48; // x0 int v49; // w0 PlayLayer *m_playLayer; // x0 CCCircleWaveDelegate *v51; // x0 GameManager *v52; // x0 char *v53; // x0 char *v54; // x20 unsigned int *v55; // x27 int v56; // w0 size_t v57; // x0 unsigned int *v58; // x1 int v59; // w2 size_t v60; // x0 unsigned int *v61; // x1 int v62; // w2 int v63; // w0 unsigned int *v64; // x1 int v65; // w2 size_t v66; // x0 unsigned int *v67; // x1 size_t v68; // x0 unsigned int *v69; // x1 char v70; // [xsp+70h] [xbp+70h] __int64 v71; // [xsp+74h] [xbp+74h] int v72; // [xsp+7Ch] [xbp+7Ch] CCSpritePlus *v73; // [xsp+80h] [xbp+80h] char *v74; // [xsp+88h] [xbp+88h] int v75; // [xsp+88h] [xbp+88h] char *v76; // [xsp+88h] [xbp+88h] char *v77; // [xsp+88h] [xbp+88h] char *v78; // [xsp+88h] [xbp+88h] char *v79; // [xsp+88h] [xbp+88h] char *v80; // [xsp+A0h] [xbp+A0h] BYREF char *v81; // [xsp+A8h] [xbp+A8h] BYREF char *v82; // [xsp+B0h] [xbp+B0h] BYREF char *v83; // [xsp+B8h] [xbp+B8h] BYREF char *v84; // [xsp+C0h] [xbp+C0h] BYREF char *v85; // [xsp+C8h] [xbp+C8h] BYREF char *v86; // [xsp+D0h] [xbp+D0h] BYREF if ( a1->hasBeenActivated(a1) || !a1->getOpacity(a1) || a1->m_hasNoEffects || a1->m_editorEnabled || !a1->getParent(a1) ) { return; } m_objectID = a1->m_objectID; v80 = &byte_124B6C8; v81 = &byte_124B6C8; if ( m_objectID == 202 ) { sub_642030("boost_03_001.png", "_001.png", "_shine_001.png", (__int64)&v84); v78 = v84; v66 = strlen(v84); sub_D1798C(&v80, v78, v66); v4 = v84; v5 = v84 - 24; if ( v84 - 24 == (char *)&qword_124B6B0 ) goto LABEL_15; if ( !&pthread_create ) goto LABEL_159; v67 = (unsigned int *)(v84 - 8); do v27 = __ldaxr(v67); while ( __stlxr(v27 - 1, v67) ); goto LABEL_40; } if ( m_objectID <= 202 ) { if ( m_objectID > 46 ) { if ( m_objectID == 101 ) { LABEL_141: sub_D1798C(&v80, "portalshine_04_front_001.png", 28); sub_D1798C(&v81, "portalshine_04_back_001.png", 27); goto LABEL_102; } if ( m_objectID > 101 ) { if ( m_objectID != 200 ) { if ( m_objectID > 200 ) { sub_642030("boost_02_001.png", "_001.png", "_shine_001.png", (__int64)&v83); v74 = v83; v3 = strlen(v83); sub_D1798C(&v80, v74, v3); v4 = v83; v5 = v83 - 24; if ( v83 - 24 == (char *)&qword_124B6B0 ) { LABEL_15: v6 = a1->m_objectID; if ( v6 != 202 ) { if ( v6 <= 202 ) { if ( v6 == 200 ) { v70 = -1; v72 = 1; v71 = 255; v75 = 1; goto LABEL_25; } goto LABEL_112; } if ( v6 != 203 ) { if ( v6 == 1334 ) { v7 = 0; v72 = 1; LABEL_20: BYTE4(v71) = 50; v70 = -1; LOBYTE(v71) = 50; LABEL_21: if ( v7 ) v8 = 2; else v8 = 1; v75 = v8; goto LABEL_25; } LABEL_112: LOBYTE(v71) = -106; v72 = 1; v70 = 0; BYTE4(v71) = -1; v75 = 1; goto LABEL_25; } v7 = 0; v72 = 1; LABEL_143: LOBYTE(v71) = 0; BYTE4(v71) = -1; v70 = -1; goto LABEL_21; } v7 = 0; v72 = 1; LABEL_145: v70 = 0; BYTE4(v71) = -106; LOBYTE(v71) = -1; goto LABEL_21; } if ( &pthread_create ) { v26 = (unsigned int *)(v83 - 8); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); goto LABEL_40; } LABEL_159: v27 = *((_DWORD *)v4 - 2); *((_DWORD *)v4 - 2) = v27 - 1; goto LABEL_40; } if ( m_objectID != 111 ) return; goto LABEL_147; } sub_642030("boost_01_001.png", "_001.png", "_shine_001.png", (__int64)&v82); v79 = v82; v68 = strlen(v82); sub_D1798C(&v80, v79, v68); v4 = v82; v5 = v82 - 24; if ( v82 - 24 == (char *)&qword_124B6B0 ) goto LABEL_15; if ( !&pthread_create ) goto LABEL_159; v69 = (unsigned int *)(v82 - 8); do v27 = __ldaxr(v69); while ( __stlxr(v27 - 1, v69) ); LABEL_40: if ( v27 > 0 ) goto LABEL_15; LABEL_41: operator delete(v5); goto LABEL_15; } if ( m_objectID != 47 ) { if ( m_objectID != 99 ) return; goto LABEL_141; } LABEL_147: sub_D1798C(&v80, "portalshine_02_front_001.png", 28); sub_D1798C(&v81, "portalshine_02_back_001.png", 27); goto LABEL_102; } if ( m_objectID >= 45 ) { sub_D1798C(&v80, "portalshine_03_front_001.png", 28); sub_D1798C(&v81, "portalshine_03_back_001.png", 27); goto LABEL_102; } if ( m_objectID < 10 ) return; if ( m_objectID > 11 ) { if ( m_objectID > 13 ) return; goto LABEL_147; } LABEL_101: sub_D1798C(&v80, "portalshine_01_front_001.png", 28); sub_D1798C(&v81, "portalshine_01_back_001.png", 27); goto LABEL_102; } if ( m_objectID == 749 ) { LABEL_124: sub_D1798C(&v80, "portalshine_06_front_001.png", 28); sub_D1798C(&v81, "portalshine_06_back_001.png", 27); goto LABEL_102; } if ( m_objectID > 749 ) { if ( m_objectID == 1933 ) goto LABEL_147; if ( m_objectID <= 1933 ) { if ( m_objectID != 1331 ) { if ( m_objectID != 1334 ) return; sub_642030("boost_05_001.png", "_001.png", "_shine_001.png", (__int64)&v86); v77 = v86; v60 = strlen(v86); sub_D1798C(&v80, v77, v60); v5 = v86 - 24; if ( v86 - 24 == (char *)&qword_124B6B0 ) goto LABEL_15; if ( &pthread_create ) { v61 = (unsigned int *)(v86 - 8); do v62 = __ldaxr(v61); while ( __stlxr(v62 - 1, v61) ); } else { v62 = *((_DWORD *)v86 - 2); *((_DWORD *)v86 - 2) = v62 - 1; } if ( v62 > 0 ) goto LABEL_15; goto LABEL_41; } goto LABEL_147; } if ( m_objectID != 2902 ) { if ( m_objectID == 2926 ) goto LABEL_101; if ( m_objectID != 2064 ) return; } goto LABEL_124; } if ( m_objectID > 287 ) { if ( m_objectID == 745 ) goto LABEL_147; if ( m_objectID != 747 ) { if ( m_objectID != 660 ) return; goto LABEL_147; } goto LABEL_124; } if ( m_objectID < 286 ) { if ( m_objectID != 203 ) return; sub_642030("boost_04_001.png", "_001.png", "_shine_001.png", (__int64)&v85); v76 = v85; v57 = strlen(v85); sub_D1798C(&v80, v76, v57); v5 = v85 - 24; if ( v85 - 24 == (char *)&qword_124B6B0 ) goto LABEL_15; if ( &pthread_create ) { v58 = (unsigned int *)(v85 - 8); do v59 = __ldaxr(v58); while ( __stlxr(v59 - 1, v58) ); } else { v59 = *((_DWORD *)v85 - 2); *((_DWORD *)v85 - 2) = v59 - 1; } if ( v59 > 0 ) goto LABEL_15; goto LABEL_41; } sub_D1798C(&v80, "portalshine_05_front_001.png", 28); sub_D1798C(&v81, "portalshine_05_back_001.png", 27); LABEL_102: v63 = a1->m_objectID; if ( v63 == 202 ) { v7 = 1; v72 = 0; goto LABEL_145; } if ( v63 <= 202 ) { if ( v63 == 200 ) { BYTE4(v71) = 0; v70 = -1; LOBYTE(v71) = -1; v72 = 0; v75 = 2; goto LABEL_25; } } else { if ( v63 == 203 ) { v7 = 1; v72 = 0; goto LABEL_143; } if ( v63 == 1334 ) { v7 = 1; v72 = 0; goto LABEL_20; } } BYTE4(v71) = -1; v72 = 0; LOBYTE(v71) = -106; v70 = 0; v75 = 2; LABEL_25: v9 = 0; v10 = nullptr; v11 = nullptr; v12 = &v80; while ( 1 ) { sub_D18D28(&v85, v12); v13 = CCSpritePlus::createWithSpriteFrameName(v85); v14 = 5; if ( !v9 ) { v25 = a1->getParent(a1); v14 = ((__int64 (__fastcall *)(cocos2d::CCNode *))v25->getZOrder)(v25) + 1; } v15 = GameManager::sharedState(); v15->m_playLayer->m_objectLayer->addChild_0(v15->m_playLayer->m_objectLayer, v13, v14); setPosition = v13->setPosition; a1->getRealPosition(a1); setPosition(v13, (const cocos2d::CCPoint *)&v86); setRotation = v13->setRotation; a1->getRotation(a1); ((void (__fastcall *)(CCSpritePlus *))setRotation)(v13); setFlipX = v13->setFlipX; isFlipX = cocos2d::CCSprite::isFlipX(a1); setFlipX(v13, isFlipX); setFlipY = v13->setFlipY; isFlipY = cocos2d::CCSprite::isFlipY(a1); setFlipY(v13, isFlipY); setScaleX = v13->setScaleX; a1->getScaleX(a1); ((void (__fastcall *)(CCSpritePlus *))setScaleX)(v13); setScaleY = v13->setScaleY; a1->getScaleY(a1); ((void (__fastcall *)(CCSpritePlus *))setScaleY)(v13); if ( v9 ) v11 = v13; v24 = (__int64 *)(v85 - 24); if ( !v9 ) v10 = v13; if ( v24 != &qword_124B6B0 ) { if ( &pthread_create ) { v28 = (unsigned int *)(v85 - 8); do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *((_DWORD *)v85 - 2); *((_DWORD *)v85 - 2) = v29 - 1; } if ( v29 <= 0 ) break; } if ( ++v9 == v75 ) goto LABEL_47; LABEL_34: if ( v9 ) v12 = &v81; else v12 = &v80; } ++v9; operator delete(v24); if ( v9 != v75 ) goto LABEL_34; LABEL_47: v30 = a1->getChildByTag(a1, 91); if ( v30 ) { v73 = CCSpritePlus::createWithSpriteFrameName("portal_extra_shine_001.png"); v31 = v73->setPosition; v32 = v30->getContentSize(v30)->width * 0.5; v33 = (__int64)v30->getContentSize(v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v32, *(float *)(v33 + 4) * 0.5); v31(v73, (const cocos2d::CCPoint *)&v86); v30->addChild_0(v30, v73, 1); ++v75; } else { v73 = nullptr; } v34 = v10; v35 = 0; while ( 1 ) { v34->setOpacity(v34, 0); if ( v35 != 2 ) CCSpritePlus::followSprite(v34); ((void (__fastcall *)(CCSpritePlus *, __int64))v34->setBlendFunc)(v34, 0x100000302LL); v36 = (cocos2d::CCSequence *)cocos2d::CCFadeIn::create(0.05); v37 = cocos2d::CCFadeOut::create(0.4); v38 = cocos2d::CCCallFunc::create(v34, CCSpritePlus::stopFollow, 0); v39 = cocos2d::CCCallFunc::create(v34, 520, 1); v40 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v36, v37, v38, v39, 0); cocos2d::CCNode::runAction(v34, v40); if ( ++v35 == v75 ) break; v34 = v10; if ( v35 ) { if ( v35 == 1 ) v34 = v11; else v34 = v73; } } if ( v72 ) { v41 = a1->m_objectID; if ( v41 == 201 ) { v42 = 65.0; } else if ( v41 <= 201 ) { if ( v41 != 200 ) goto LABEL_125; v42 = 60.0; } else if ( v41 == 203 ) { v42 = 80.0; } else { if ( v41 == 1334 ) { v42 = 90.0; goto LABEL_63; } LABEL_125: v42 = 70.0; } LABEL_63: v43 = CCCircleWave::create(5.0, v42, 0.3, 0); v43->m_color.r = v70; v43->m_color.g = v71; v43->m_color.b = BYTE4(v71); v44 = v43->setPosition; v45 = a1->getPosition(a1); v44(v43, v45); if ( a1->getParent(a1) ) { m_objectLayer = GameManager::sharedState()->m_playLayer->m_objectLayer; addChild_0 = m_objectLayer->addChild_0; v48 = a1->getParent(a1); v49 = v48->getZOrder(v48); addChild_0(m_objectLayer, v43, v49 - 1); } v43->m_lineWidth = 6; v43->m_circleMode = Outline; CCCircleWave::followObject(v43, a1, 1); m_playLayer = GameManager::sharedState()->m_playLayer; if ( m_playLayer ) v51 = &m_playLayer->CCCircleWaveDelegate; else v51 = nullptr; v43->m_delegate = v51; v52 = GameManager::sharedState(); PlayLayer::addCircle(v52->m_playLayer, v43); } v53 = v81 - 24; if ( v81 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v64 = (unsigned int *)(v81 - 8); do v65 = __ldaxr(v64); while ( __stlxr(v65 - 1, v64) ); } else { v65 = *((_DWORD *)v81 - 2); *((_DWORD *)v81 - 2) = v65 - 1; } if ( v65 <= 0 ) operator delete(v53); } v54 = v80 - 24; if ( v80 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)(v80 - 8); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = *((_DWORD *)v80 - 2); *((_DWORD *)v80 - 2) = v56 - 1; } if ( v56 <= 0 ) operator delete(v54); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source