// // PlayerObject::toggleVisibility from 0x62a110 to 0x62a238 (296 bytes) // // 7 xrefs: // > PlayerObject::spawnFromPlayer @ 0x631ee4 // > PlayerObject::spawnFromPlayer @ 0x631f2c // > PlayerObject::resetObject @ 0x632414 // > PlayerObject::loadFromCheckpoint @ 0x63b474 // > GJBaseGameLayer::togglePlayerVisibility @ 0x865c30 // > GJBaseGameLayer::togglePlayerVisibility @ 0x865c38 // > @ 0xc78f0 // // 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 PlayerObject::toggleVisibility(PlayerObject *a1, bool a2) { _BOOL4 v2; // w20 PlayerObject_vtbl *v4; // x2 cocos2d::CCMotionStreak *v5; // x0 cocos2d::CCMotionStreak *m_shipStreak; // x0 v2 = !a2; if ( a1->m_isHidden != v2 ) { if ( a2 ) { v4 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_isHidden = v2; v4->setVisible(a1, 1); if ( PlayerObject::isFlying(a1) ) { PlayerObject::resetStreak(a1); PlayerObject::activateStreak(a1); cocos2d::CCParticleSystem::resetSystem(a1->m_trailingParticles); if ( a1->m_isDart ) { PlayerObject::placeStreakPoint(a1); } else if ( a1->m_isShip && !a1->m_isPlatformer ) { m_shipStreak = a1->m_shipStreak; if ( m_shipStreak ) m_shipStreak->setVisible(m_shipStreak, 1); } } else if ( a1->m_alwaysShowStreak ) { PlayerObject::resetStreak(a1); PlayerObject::activateStreak(a1); } } else { cocos2d::CCNode::stopActionByTag(a1, 11); a1->m_isHidden = v2; a1->setVisible(a1, 0); PlayerObject::deactivateStreak(a1, 1); v5 = a1->m_shipStreak; if ( v5 ) v5->setVisible(v5, 0); PlayerObject::resetAllParticles(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source