// // PlayerObject::rotateGameplay from 0x630508 to 0x63080c (772 bytes) // // 4 xrefs: // > PlayerObject::resetObject @ 0x6323a4 // > GJBaseGameLayer::rotateGameplay @ 0x877b20 // > GJBaseGameLayer::rotateGameplay @ 0x877bb0 // > @ 0x68a00 // // 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::rotateGameplay(PlayerObject *a1, int a2, int a3, bool a4, float a5, float a6, bool a7, bool a8) { _BOOL4 v9; // w24 double m_yVelocity; // d8 _BOOL4 v14; // w26 _BOOL4 v15; // w25 double CurrentXVelocity; // d9 _BOOL4 m_isSideways; // w20 _BOOL4 m_isUpsideDown; // w27 _BOOL4 v19; // w3 int v20; // w20 _BOOL4 m_isGoingLeft; // w22 float v22; // s0 float v23; // s1 float x; // s0 float y; // s1 _BOOL4 m_isDashing; // w0 double m_dashAngle; // d0 float m_dashX; // s0 cocos2d::CCPoint v30; // [xsp+98h] [xbp+98h] BYREF cocos2d::CCPoint v31; // [xsp+A0h] [xbp+A0h] BYREF cocos2d::CCPoint v32; // 0:s0.4,4:s1.4 v9 = a4; m_yVelocity = a1->m_yVelocity; v14 = a7; v15 = a8; CurrentXVelocity = PlayerObject::getCurrentXVelocity(a1); m_isSideways = a1->m_isSideways; m_isUpsideDown = a1->m_isUpsideDown; v19 = (unsigned int)(a2 - 3) <= 1; a1->m_isSideways = v19; v20 = m_isSideways ^ v19; PlayerObject::flipGravity(a1, a2 == 4 || a2 == 1, 1); m_isGoingLeft = a1->m_isGoingLeft; if ( a1->m_isPlatformer ) PlayerObject::doReversePlayer(a1, m_isGoingLeft); else PlayerObject::doReversePlayer(a1, (unsigned int)(a3 - 2) <= 1); PlayerObject::updatePlayerArt(a1); if ( !v20 ) { if ( a1->m_isUpsideDown == m_isUpsideDown ) { if ( a1->m_isGoingLeft == m_isGoingLeft || !a1->m_isDashing ) return; m_dashAngle = a1->m_dashAngle; goto LABEL_24; } m_isDashing = a1->m_isDashing; LABEL_20: if ( !m_isDashing ) return; m_dashAngle = a1->m_dashAngle; if ( a1->m_isGoingLeft == m_isGoingLeft ) goto LABEL_26; if ( v20 ) { m_dashAngle = m_dashAngle + 180.0; a1->m_dashAngle = m_dashAngle; } LABEL_24: if ( m_dashAngle <= 0.0 ) { m_dashAngle = -180.0 - m_dashAngle; a1->m_dashAngle = m_dashAngle; if ( m_dashAngle > 180.0 ) goto LABEL_27; goto LABEL_30; } m_dashAngle = 180.0 - m_dashAngle; a1->m_dashAngle = m_dashAngle; LABEL_26: if ( m_dashAngle > 180.0 ) { LABEL_27: a1->m_dashAngle = m_dashAngle - 360.0; LABEL_28: PlayerObject::updateDashArt(a1); return; } LABEL_30: if ( m_dashAngle < -180.0 ) a1->m_dashAngle = m_dashAngle + 360.0; goto LABEL_28; } if ( a1->m_isGoingLeft == m_isGoingLeft && a1->m_isDart ) { PlayerObject::createFadeOutDartStreak(a1); if ( a1->m_fadeOutStreak ) { HardStreak::reset(a1->m_waveTrail); PlayerObject::placeStreakPoint(a1); } } if ( a1->m_vehicleGroundParticles->isActive(a1->m_vehicleGroundParticles) ) cocos2d::CCParticleSystem::resetSystem(a1->m_vehicleGroundParticles); PlayerObject::resetCollisionLog(a1, 1); v22 = CurrentXVelocity; v23 = m_yVelocity; cocos2d::CCPoint::CCPoint(&v30, v22, v23); x = v30.x; y = v30.y; v30.y = v30.x; v30.x = y; if ( v9 ) { if ( !v14 ) { a5 = a5 * y; a6 = a6 * x; } v30.x = a5; v30.y = a6; } cocos2d::CCPoint::CCPoint(&v31, &v30); PlayerObject::updatePlayerForce(a1, v32, (bool)&v31); a1->m_maybeIsBoosted = 1; PlayerObject::playerTeleported(a1); if ( v15 ) PlayerObject::handlePlayerCommand(a1, 543); if ( PlayerObject::isInNormalMode(a1) && !a1->m_isRotating ) PlayerObject::runRotateAction(a1, 0, 4); m_isDashing = a1->m_isDashing; if ( a1->m_isDashing ) { m_dashX = a1->m_dashX; a1->m_dashX = a1->m_dashY; a1->m_dashY = m_dashX; goto LABEL_20; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source