// // PlayerObject::rotateGameplay from 0x140399d50 to 0x14039a1c9 (1145 bytes) // // 4 xrefs: // > GJBaseGameLayer::rotateGameplay @ 0x14021827a // > GJBaseGameLayer::rotateGameplay @ 0x1402182d6 // > PlayerObject::resetObject @ 0x14039704e // > @ 0x1406d6560 // // 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) { float v8; // xmm0_4 double m_platformerXVelocity; // xmm6_8 bool m_isUpsideDown; // r15 char v13; // r13 bool v14; // dl bool *p_m_isGoingLeft; // rbx bool m_isGoingLeft; // r14 bool v17; // dl HardStreak *m_waveTrail; // rbx float *v19; // rax bool v20; // zf double v21; // xmm0_8 float m_dashX; // xmm0_4 bool *v23; // rax double m_dashAngle; // xmm1_8 double v25; // xmm0_8 double v26; // xmm0_8 double v27; // xmm0_8 cocos2d::CCPoint v28; // [rsp+20h] [rbp-68h] BYREF char m_isSideways; // [rsp+98h] [rbp+10h] if ( a1->m_isPlatformer ) m_platformerXVelocity = a1->m_platformerXVelocity; else m_platformerXVelocity = a1->m_playerSpeed * a1->m_speedMultiplier; m_isUpsideDown = a1->m_isUpsideDown; m_isSideways = a1->m_isSideways; v13 = (unsigned int)(a2 - 3) <= 1; a1->m_isSideways = v13; v14 = a2 == 1 || a2 == 4; PlayerObject::flipGravity(a1, v14, 1); p_m_isGoingLeft = &a1->m_isGoingLeft; m_isGoingLeft = a1->m_isGoingLeft; if ( a1->m_isPlatformer ) { v17 = a1->m_isGoingLeft; } else { v17 = true; if ( a3 != 3 ) { p_m_isGoingLeft = &a1->m_isGoingLeft; if ( a3 != 2 ) v17 = false; } } PlayerObject::doReversePlayer(a1, v17); PlayerObject::updatePlayerArt(a1); if ( v13 != m_isSideways ) { if ( m_isGoingLeft == a1->m_isGoingLeft && a1->m_isDart ) { PlayerObject::createFadeOutDartStreak(a1); if ( a1->m_fadeOutStreak ) { m_waveTrail = a1->m_waveTrail; cocos2d::CCDrawNode::clear(m_waveTrail); cocos2d::CCArray::removeAllObjects(m_waveTrail->m_pointArray); PlayerObject::placeStreakPoint(a1); } } if ( a1->m_vehicleGroundParticles->isActive(a1->m_vehicleGroundParticles) ) cocos2d::CCParticleSystem::resetSystem(a1->m_vehicleGroundParticles); cocos2d::CCDictionary::removeAllObjects(a1->m_collisionLogTop); cocos2d::CCDictionary::removeAllObjects(a1->m_collisionLogBottom); cocos2d::CCDictionary::removeAllObjects(a1->m_collisionLogLeft); cocos2d::CCDictionary::removeAllObjects(a1->m_collisionLogRight); *(_QWORD *)&a1->m_unk50C = -1; *(_QWORD *)&a1->m_lastCollisionBottom = -1; *(_QWORD *)&a1->m_lastCollisionLeft = -1; cocos2d::CCPoint::CCPoint(v8, m_platformerXVelocity); cocos2d::CCPoint::CCPoint(&v28); v20 = !a1->m_isPlatformer; a1->m_isAccelerating = 1; a1->m_yVelocity = v19[1]; if ( !v20 ) { v21 = *v19; a1->m_affectedByForces = 1; a1->m_platformerXVelocity = v21; } a1->m_maybeIsBoosted = 1; a1->m_isOnGround2 = 0; cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, &stru_1406C2450); PlayerObject::placeStreakPoint(a1); if ( a8 ) { a1->m_isAccelerating = 0; a1->m_affectedByForces = 0; } if ( !a1->m_isShip && !a1->m_isBird && !a1->m_isDart && !a1->m_isSwing && !a1->m_isBall && !a1->m_isRobot && !a1->m_isSpider && !a1->m_isRotating && !a1->m_isLocked ) { if ( a1->m_isDashing ) goto LABEL_39; v20 = !a1->m_isBall; *(_WORD *)&a1->m_isRotating = 0; a1->m_isBallRotating = 0; a1->m_rotationSpeed = 0.0; if ( v20 ) PlayerObject::runNormalRotation(a1, 0, 1.0); else PlayerObject::runBallRotation(a1, 1.0); } if ( !a1->m_isDashing ) { LABEL_40: v23 = &a1->m_isGoingLeft; goto LABEL_43; } LABEL_39: m_dashX = a1->m_dashX; a1->m_dashX = a1->m_dashY; a1->m_dashY = m_dashX; goto LABEL_40; } v23 = p_m_isGoingLeft; if ( m_isUpsideDown != a1->m_isUpsideDown || m_isGoingLeft != *p_m_isGoingLeft ) { LABEL_43: if ( !a1->m_isDashing ) return; if ( m_isGoingLeft != *v23 ) { if ( v13 != m_isSideways ) a1->m_dashAngle = a1->m_dashAngle + 180.0; m_dashAngle = a1->m_dashAngle; if ( m_dashAngle <= 0.0 ) v25 = -180.0; else v25 = 180.0; a1->m_dashAngle = v25 - m_dashAngle; } v26 = a1->m_dashAngle; if ( v26 <= 180.0 ) { if ( v26 >= -180.0 ) { LABEL_56: PlayerObject::updateDashArt(a1); return; } v27 = v26 + 360.0; } else { v27 = v26 - 360.0; } a1->m_dashAngle = v27; goto LABEL_56; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source