// // EndPortalObject::setPosition from 0x789e1c to 0x789f5c (320 bytes) // // 2 xrefs: // > @ 0x99648 // > @ 0x1176f28 // // 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 EndPortalObject::setPosition(EndPortalObject *a1, const cocos2d::CCPoint *a2) { cocos2d::CCSprite *m_gradientBar; // x22 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 float m_cameraZoom; // s2 float v7; // s1 cocos2d::CCParticleSystemQuad *m_particle; // x21 void (__fastcall *v9)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22 const cocos2d::CCPoint *v10; // x23 float v11; // s0 cocos2d::CCPoint v12; // [xsp+58h] [xbp+58h] BYREF __int64 v13; // [xsp+60h] [xbp+60h] BYREF GameObject::setPosition(a1, a2); m_gradientBar = a1->m_gradientBar; if ( m_gradientBar ) { setPosition = m_gradientBar->setPosition; m_cameraZoom = GameManager::sharedState()->m_playLayer->m_gameState.m_cameraZoom; if ( a1->m_flippedX ) v7 = -1.0; else v7 = 1.0; cocos2d::CCPoint::CCPoint(&v12, (float)(-14.0 - (float)(15.0 / m_cameraZoom)) * v7, 0.0); cocos2d::CCPoint::operator+(&v13, a2, &v12); setPosition(m_gradientBar, (const cocos2d::CCPoint *)&v13); } m_particle = a1->m_particle; if ( m_particle ) { v9 = m_particle->setPosition; v10 = a1->getPosition(a1); if ( a1->m_flippedX ) v11 = -1.0; else v11 = 1.0; cocos2d::CCPoint::operator*(&a1->m_particleOffset, v11); cocos2d::CCPoint::operator+(&v13, v10, &v12); v9(m_particle, (const cocos2d::CCPoint *)&v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source