// // GJBaseGameLayer::playExitDualEffect from 0x85a958 to 0x85ae24 (1228 bytes) // // 3 xrefs: // > PlayLayer::destroyPlayer @ 0x5d2040 // > GJBaseGameLayer::toggleDualMode @ 0x88a4a8 // > @ 0x96780 // // 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::playExitDualEffect(GJBaseGameLayer *a1, PlayerObject *a2) { GameManager *v4; // x0 SimplePlayer *v5; // x19 GameManager *v6; // x0 GameManager *v7; // x0 void (__fastcall *setScaleX)(cocos2d::CCSprite *__hidden, float); // x22 float v9; // s0 void (__fastcall *setScaleY)(cocos2d::CCSprite *__hidden, float); // x22 float v11; // s0 const cocos2d::CCPoint *v12; // x0 float v13; // s0 float v14; // s8 int v15; // w25 void (__fastcall *setColor)(SimplePlayer *__hidden, const cocos2d::ccColor3B *); // x28 const cocos2d::ccColor3B *v17; // x0 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x27 cocos2d::CCFadeOut *v19; // x27 __int64 v20; // x28 cocos2d::CCMoveTo *v21; // x26 int v22; // s1 cocos2d::CCRotateBy *v23; // x28 cocos2d::CCAction *v24; // x25 cocos2d::CCFiniteTimeAction *v25; // x0 cocos2d::CCAction *v26; // x28 GLubyte r; // w27 GLubyte g; // w26 CCCircleWave *v29; // x0 CCCircleWave_vtbl *v30; // x2 CCCircleWave *v31; // x20 void (__fastcall *v32)(cocos2d::CCSprite *__hidden, float); // x24 float v33; // s0 float v34; // s0 float v35; // s1 GameManager *v36; // x0 GameManager *v37; // x0 GameManager *v38; // x0 GameManager *v39; // x0 float v40; // [xsp+70h] [xbp+70h] cocos2d::CCPoint v41; // [xsp+88h] [xbp+88h] BYREF __int64 v42; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCPoint v43; // [xsp+98h] [xbp+98h] BYREF cocos2d::CCPoint v44; // [xsp+A0h] [xbp+A0h] BYREF v4 = GameManager::sharedState(); v5 = SimplePlayer::create(v4->m_playerFrame.random - v4->m_playerFrame.seed); if ( a2->m_isBall ) { v7 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v5, v7->m_playerBall.random - v7->m_playerBall.seed, Ball); } else if ( a2->m_isShip ) { v36 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v5, v36->m_playerShip.random - v36->m_playerShip.seed, Ship); } else if ( a2->m_isBird ) { v37 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v5, v37->m_playerBird.random - v37->m_playerBird.seed, Ufo); } else if ( a2->m_isDart ) { v39 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v5, v39->m_playerDart.random - v39->m_playerDart.seed, Wave); } else if ( a2->m_isRobot ) { v38 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v5, v38->m_playerRobot.random - v38->m_playerRobot.seed, Robot); } else if ( a2->m_isSpider ) { v6 = GameManager::sharedState(); SimplePlayer::updatePlayerFrame(v5, v6->m_playerSpider.random - v6->m_playerSpider.seed, Spider); } setScaleX = v5->setScaleX; v9 = a2->getScaleX(a2); setScaleX(v5, v9 * a1->m_gameState.m_cameraZoom); setScaleY = v5->setScaleY; v11 = a2->getScaleY(a2); setScaleY(v5, v11 * a1->m_gameState.m_cameraZoom); v12 = a2->getPosition(a2); cocos2d::CCPoint::CCPoint(&v41, v12); v13 = a2->getRotation(a2); v14 = v13; if ( a1->m_gameState.m_unkBool10 ) { v14 = -v13; v15 = -1; v32 = v5->setScaleX; v33 = v5->getScaleX(v5); v32(v5, -v33); cocos2d::CCPoint::CCPoint(&v43, 150.0, 0.0); cocos2d::CCPoint::operator+(&v44, &v41, &v43); cocos2d::CCPoint::operator=(&v41, v34, v35); } else { v15 = 1; } a1->addChild_0(a1, v5, 100); setColor = v5->setColor; v17 = a2->getColor(a2); setColor(v5, v17); *(cocos2d::ccColor3B *)&v44.x = PlayerObject::getSecondColor(a2); SimplePlayer::setSecondColor(v5, (const cocos2d::ccColor3B *)&v44); SimplePlayer::updateColors(v5); cocos2d::CCPoint::operator-(&v42, &v41, &a1->m_gameState.m_cameraPosition); setPosition = v5->setPosition; cocos2d::CCPoint::operator*(&v42, a1->m_gameState.m_cameraZoom); setPosition(v5, &v44); v5->setRotation(v5, v14); v19 = cocos2d::CCFadeOut::create(0.4); v20 = (__int64)v5->getPosition(v5); cocos2d::CCPoint::CCPoint(&v43, (float)v15 * -124.63, 0.0); cocos2d::CCPoint::operator+(&v44, v20, &v43); v21 = cocos2d::CCMoveTo::create(0.4, &v44); if ( v5->getScaleX(v5) <= 0.0 ) v22 = -1110651699; else v22 = 1036831949; v40 = *(float *)&v22; v5->getScaleY(v5); v23 = (cocos2d::CCRotateBy *)cocos2d::CCScaleTo::create(0.4, v40); v24 = (cocos2d::CCAction *)cocos2d::CCRotateBy::create(v23, 0.4, 180.0); v25 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v5, 520, 1); v26 = (cocos2d::CCAction *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v23, v25, 0); cocos2d::CCNode::runAction(v5, v19); cocos2d::CCNode::runAction(v5, v21); cocos2d::CCNode::runAction(v5, v26); cocos2d::CCNode::runAction(v5, v24); r = a2->m_playerColor1.r; g = a2->m_playerColor1.g; LOBYTE(v24) = a2->m_playerColor1.b; v29 = CCCircleWave::create(10.0, 30.0, 0.4, 0); v30 = v29->__vftable; v29->m_color.r = r; v29->m_color.g = g; v31 = v29; v29->m_color.b = (unsigned __int8)v24; v30->setPosition(v29, (const cocos2d::CCPoint *)&v42); a1->addChild_0(a1, v31, 0); v31->m_circleMode = Outline; CCCircleWave::followObject(v31, v5, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source