// // PlayerObject::updateMove from 0x10021b780 to 0x10021c714 (3988 bytes) // // 1 xrefs: // > PlayerObject::update @ 0x100219b24 // // 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 __fastcall PlayerObject::updateMove(PlayerObject *a1, float a2) { int v2; // w2 double v5; // d9 _BOOL4 m_isOnSlope; // w20 _BOOL4 m_leftPressedFirst; // w22 int v8; // w21 _BOOL4 m_platformerMovingRight; // w23 double v10; // d0 double m_platformerXVelocity; // d11 double v12; // d10 bool v13; // zf bool v14; // w8 double v15; // d13 double m_yVelocityBeforeSlope; // d2 double v17; // d1 double m_maybeSlopeForce; // d1 double v19; // d12 double v20; // d0 double v21; // d14 GJRobotSprite *m_robotSprite; // x20 SpriteAnimationManager *m_animationManager; // x9 double v24; // d1 float v25; // s0 SpriteAnimationManager *v26; // x9 char v27; // w9 char v28; // w20 int v29; // w20 SpriteAnimationManager *v30; // x8 int v31; // w20 SpriteAnimationManager *v32; // x8 _BOOL4 v33; // w20 GJRobotSprite *v34; // x20 void **v35; // x8 _BOOL4 v36; // w20 GJSpiderSprite *m_spiderSprite; // x20 float m_platformerVelocityRelated; // s0 float v39; // s2 float v40; // s1 double v41; // d0 bool *p_m_maybeHasStopped; // x8 _BOOL4 m_platformerMovingLeft; // w10 double v44; // d1 double v45; // d2 double v46; // d1 _BOOL4 v47; // w9 double v48; // d2 double v49; // d3 double v50; // d2 double v51; // d2 double v52; // d1 double v53; // d2 double v54; // d0 bool v55; // w9 double v56; // d2 float v57; // s0 _BOOL4 m_isGoingLeft; // w24 bool v59; // w1 __n128 v60; // q0 int v61; // w8 unsigned __int64 v62; // t2 float v63; // s0 float v64; // s0 GJRobotSprite *v65; // x20 void *v66; // x0 float v67; // s0 float v68; // s0 GJSpiderSprite *v69; // x20 float m_totalTime; // s0 _BOOL4 m_isSideways; // w20 double v72; // d1 float m_xVelocityRelated2; // s0 _BOOL4 v74; // w8 float v75; // s2 float v76; // s0 float v77; // s1 float v78; // s0 double v79; // d8 float m_slopeRotation; // s0 float v81; // s0 float v82; // s0 bool v83; // nf char v84; // w8 bool v85; // cc char v86; // w9 float v87; // s1 float v88; // s1 float v89; // s2 void *v90[2]; // [xsp+8h] [xbp-168h] BYREF char v91; // [xsp+1Fh] [xbp-151h] _QWORD v92[2]; // [xsp+20h] [xbp-150h] BYREF char v93; // [xsp+37h] [xbp-139h] _QWORD v94[2]; // [xsp+38h] [xbp-138h] BYREF char v95; // [xsp+4Fh] [xbp-121h] _QWORD v96[2]; // [xsp+50h] [xbp-120h] BYREF char v97; // [xsp+67h] [xbp-109h] void *__p[2]; // [xsp+68h] [xbp-108h] BYREF char v99; // [xsp+7Fh] [xbp-F1h] void *v100[2]; // [xsp+80h] [xbp-F0h] BYREF char *v101; // [xsp+90h] [xbp-E0h] void *v102[2]; // [xsp+98h] [xbp-D8h] BYREF char v103; // [xsp+AFh] [xbp-C1h] __int128 v104; // [xsp+B0h] [xbp-C0h] BYREF char *v105; // [xsp+C0h] [xbp-B0h] __int128 __dst; // [xsp+D0h] [xbp-A0h] BYREF char *longStorage; // [xsp+E0h] [xbp-90h] v5 = a1->m_speedMultiplier * a1->m_playerSpeed; m_isOnSlope = a1->m_isOnSlope; if ( m_isOnSlope && !a1->m_slopeFlipGravityRelated && !a1->m_maybeUpsideDownSlope ) v5 = v5 * cosf(a1->m_slopeAngle); if ( a1->m_holdingLeft ) { if ( !a1->m_holdingRight ) { v8 = 0; m_platformerMovingRight = 1; m_leftPressedFirst = 1; goto LABEL_15; } m_leftPressedFirst = a1->m_leftPressedFirst; v8 = !m_leftPressedFirst; goto LABEL_13; } if ( a1->m_holdingRight ) { m_leftPressedFirst = 0; m_platformerMovingRight = 1; v8 = 1; goto LABEL_15; } if ( a1->m_platformerMovingLeft ) { v8 = 0; m_leftPressedFirst = 0; LABEL_13: m_platformerMovingRight = 1; goto LABEL_15; } v8 = 0; m_leftPressedFirst = 0; m_platformerMovingRight = a1->m_platformerMovingRight; LABEL_15: v10 = 0.200000003; if ( !a1->m_isOnIce ) { if ( a1->m_isOnGround2 || a1->m_isSlidingRight == m_leftPressedFirst ) { v10 = 1.0; } else if ( a1->m_maybeSlidingTime <= 0 ) { v24 = a1->m_totalTime - a1->m_maybeSlidingStartTime; v10 = 1.0; if ( v24 < 0.5 ) { v25 = (v24 + v24) * 0.800000012 + 0.200000003; v10 = v25; } } } m_platformerXVelocity = a1->m_platformerXVelocity; v12 = a2; v14 = (a1->m_platformerMovingLeft && m_leftPressedFirst || (a1->m_platformerMovingRight & (unsigned __int8)v8 & 1) != 0) && (fabs(m_platformerXVelocity) >= v5 * 0.949999988 ? (v13 = !m_isOnSlope) : (v13 = 1), !v13) && !a1->m_maybeUpsideDownSlope; v15 = v12 * 0.5; if ( a1->m_isSliding || v14 ) { m_yVelocityBeforeSlope = a1->m_yVelocityBeforeSlope; v17 = 1.0; if ( m_yVelocityBeforeSlope < 0.0 ) v17 = m_yVelocityBeforeSlope / -15.0 * 0.300000012 + 1.0; if ( v14 ) { m_maybeSlopeForce = a1->m_maybeSlopeForce + (float)(a2 * 0.25) * v17; a1->m_maybeSlopeForce = m_maybeSlopeForce; } else { m_maybeSlopeForce = a1->m_maybeSlopeForce; } v5 = v5 + m_maybeSlopeForce; a1->m_isSliding = 1; } v19 = v15 * v10; if ( m_leftPressedFirst && m_platformerXVelocity > 0.0 ) { LABEL_36: v19 = v19 * 1.5; goto LABEL_40; } if ( (v8 & 1) != 0 ) { if ( m_platformerXVelocity >= 0.0 ) { LABEL_41: a1->m_platformerVelocityRelated = 0.0; if ( m_leftPressedFirst && m_platformerXVelocity > -v5 || ((unsigned __int8)v8 & (m_platformerXVelocity < v5)) != 0 ) { v20 = 1.0; if ( m_leftPressedFirst ) v20 = -1.0; a1->m_platformerXVelocity = m_platformerXVelocity + v19 * v20; } v21 = 0.0500000007; if ( a1->m_isOnGround2 ) { if ( a1->m_isRobot ) { m_robotSprite = a1->m_robotSprite; if ( a1->m_currentRobotAnimation.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( &__dst, (void *)a1->m_currentRobotAnimation.m_data.m_long.capacitym1, a1->m_currentRobotAnimation.m_data.m_long.size); } else { __dst = *(_OWORD *)&a1->m_currentRobotAnimation.m_data.m_short.sizex2; longStorage = a1->m_currentRobotAnimation.m_data.m_long.longStorage; } CCAnimatedSprite::runAnimation(m_robotSprite, &__dst); if ( SHIBYTE(longStorage) < 0 ) operator delete((void *)__dst); } else if ( a1->m_isSpider ) { PlayerObject::playDynamicSpiderRun(a1); } } v27 = 0; v28 = 1; goto LABEL_113; } goto LABEL_36; } LABEL_40: if ( ((m_leftPressedFirst | v8) & 1) != 0 ) goto LABEL_41; if ( a1->m_isOnGround2 ) { if ( a1->m_isRobot ) { m_animationManager = a1->m_robotSprite->m_animationManager; if ( m_animationManager->m_currentAnimation.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( &v104, (void *)m_animationManager->m_currentAnimation.m_data.m_long.capacitym1, m_animationManager->m_currentAnimation.m_data.m_long.size); } else { v104 = *(_OWORD *)&m_animationManager->m_currentAnimation.m_data.m_short.sizex2; v105 = m_animationManager->m_currentAnimation.m_data.m_long.longStorage; } sub_100009900(v102, "idle01"); if ( sub_1000045BC(&v104, v102) ) { v29 = 0; } else { v30 = a1->m_robotSprite->m_animationManager; if ( v30->m_currentAnimation.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( v100, (void *)v30->m_currentAnimation.m_data.m_long.capacitym1, v30->m_currentAnimation.m_data.m_long.size); } else { *(_OWORD *)v100 = *(_OWORD *)&v30->m_currentAnimation.m_data.m_short.sizex2; v101 = v30->m_currentAnimation.m_data.m_long.longStorage; } sub_100009900(__p, "idle02"); v33 = sub_1000045BC(v100, __p); if ( v99 < 0 ) operator delete(__p[0]); v29 = !v33; if ( SHIBYTE(v101) < 0 ) operator delete(v100[0]); } if ( v103 < 0 ) operator delete(v102[0]); if ( SHIBYTE(v105) < 0 ) { operator delete((void *)v104); if ( !v29 ) goto LABEL_102; } else if ( !v29 ) { goto LABEL_102; } v34 = a1->m_robotSprite; sub_100009900(v96, "idle01"); CCAnimatedSprite::tweenToAnimation(v34, v96, 0.2); if ( (v97 & 0x80000000) == 0 ) goto LABEL_102; v35 = (void **)v96; } else { if ( !a1->m_isSpider ) goto LABEL_102; v26 = a1->m_spiderSprite->m_animationManager; if ( v26->m_currentAnimation.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( &v104, (void *)v26->m_currentAnimation.m_data.m_long.capacitym1, v26->m_currentAnimation.m_data.m_long.size); } else { v104 = *(_OWORD *)&v26->m_currentAnimation.m_data.m_short.sizex2; v105 = v26->m_currentAnimation.m_data.m_long.longStorage; } sub_100009900(v102, "idle01"); if ( sub_1000045BC(&v104, v102) ) { v31 = 0; } else { v32 = a1->m_spiderSprite->m_animationManager; if ( v32->m_currentAnimation.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( v100, (void *)v32->m_currentAnimation.m_data.m_long.capacitym1, v32->m_currentAnimation.m_data.m_long.size); } else { *(_OWORD *)v100 = *(_OWORD *)&v32->m_currentAnimation.m_data.m_short.sizex2; v101 = v32->m_currentAnimation.m_data.m_long.longStorage; } sub_100009900(__p, "idle02"); v36 = sub_1000045BC(v100, __p); if ( v99 < 0 ) operator delete(__p[0]); v31 = !v36; if ( SHIBYTE(v101) < 0 ) operator delete(v100[0]); } if ( v103 < 0 ) operator delete(v102[0]); if ( SHIBYTE(v105) < 0 ) operator delete((void *)v104); if ( !v31 ) goto LABEL_102; m_spiderSprite = a1->m_spiderSprite; sub_100009900(v94, "idle01"); CCAnimatedSprite::tweenToAnimation(m_spiderSprite, v94, 0.2); if ( (v95 & 0x80000000) == 0 ) goto LABEL_102; v35 = (void **)v94; } operator delete(*v35); } LABEL_102: if ( a1->m_isOnIce ) { v28 = 0; v27 = 1; v21 = 0.200000003; } else { m_platformerVelocityRelated = a1->m_platformerVelocityRelated; v39 = 0.2; v40 = fminf(m_platformerVelocityRelated + 0.2, 1.0); if ( !a1->m_isOnGround2 ) { v39 = 0.02; if ( !a1->m_isShip && !a1->m_isBall && !a1->m_isBird ) { if ( a1->m_isRobot ) { v39 = 0.1; } else { v39 = 0.05; if ( a1->m_isSpider ) v39 = 0.1; } } } v28 = 0; v21 = v40; a1->m_platformerVelocityRelated = m_platformerVelocityRelated + (float)(a2 * v39); v27 = 1; } LABEL_113: v41 = a1->m_platformerXVelocity; if ( fabs(v41) >= 0.5 ) { if ( a1->m_affectedByForces ) { p_m_maybeHasStopped = &a1->m_maybeHasStopped; goto LABEL_118; } } else { a1->m_affectedByForces = 0; } p_m_maybeHasStopped = &a1->m_maybeHasStopped; if ( !a1->m_isMoving ) { if ( !*p_m_maybeHasStopped ) goto LABEL_121; goto LABEL_120; } LABEL_118: v27 = 1; LABEL_120: if ( !a1->m_isOnIce ) { if ( a1->m_decreaseBoostSlide || m_platformerMovingRight ) v21 = 0.0500000007; else v21 = 0.200000003; goto LABEL_128; } LABEL_121: if ( a1->m_maybeGoingCorrectSlopeDirection && !a1->m_isOnIce ) v21 = 0.100000001; LABEL_128: m_platformerMovingLeft = a1->m_platformerMovingLeft; if ( m_platformerMovingLeft ) { a1->m_isSlidingRight = m_platformerMovingLeft; if ( m_leftPressedFirst && v8 & 1 | !a1->m_platformerMovingRight ) goto LABEL_170; } else { if ( !a1->m_platformerMovingRight ) goto LABEL_170; a1->m_isSlidingRight = m_platformerMovingLeft; if ( (v8 & 1) != 0 ) goto LABEL_170; } if ( a1->m_currentSlope ) v44 = fabsf(a1->m_slopeAngleRadians * 57.296); else v44 = 0.0; if ( v44 > 80.0 ) v44 = 80.0; v45 = (fmax(v44, 40.0) + -40.0) / 40.0; v46 = v15 * (v45 * 0.5 + 0.5) * 0.400000006; if ( a1->m_isShip ) v46 = v46 * 0.699999988; if ( !m_platformerMovingLeft || v41 <= 0.0 ) { v47 = a1->m_platformerMovingRight; if ( !v47 || v41 >= 0.0 ) { if ( m_platformerMovingLeft & v8 | (v47 && m_leftPressedFirst) ) v46 = v19 + v46; goto LABEL_162; } } v48 = v45 * 0.699999988 + 1.35000002; if ( a1->m_isShip ) { v49 = -0.25; } else { if ( !a1->m_isBall ) { if ( a1->m_isSpider ) v48 = v48 + -0.200000003; goto LABEL_155; } v49 = -0.280000001; } v48 = v48 + v49; LABEL_155: if ( a1->m_isOnIce ) v48 = v48 * 4.0; if ( ((!m_platformerMovingLeft | v8) & 1) == 0 || !m_leftPressedFirst && a1->m_platformerMovingRight ) v48 = v48 * 0.800000012; v50 = v19 * v48; if ( fabs(v50) > fabs(v46) ) v46 = v50; LABEL_162: if ( a1->m_isOnSlope && !a1->m_isOnGround4 && a1->m_maybeSlidingTime >= 1 && !a1->m_maybeUpsideDownSlope ) { v41 = v41 * 0.800000012; a1->m_platformerXVelocity = v41; } v27 = 0; v51 = 1.0; if ( m_platformerMovingLeft ) v51 = -1.0; v41 = v41 + v46 * v51; a1->m_platformerXVelocity = v41; LABEL_170: if ( a1->m_maybeGoingCorrectSlopeDirection && !a1->m_isOnIce && !m_platformerMovingLeft && !a1->m_platformerMovingRight ) { if ( a1->m_isSlidingRight ) { if ( v41 <= 0.0 ) goto LABEL_178; goto LABEL_177; } if ( v41 < 0.0 ) LABEL_177: a1->m_maybeGoingCorrectSlopeDirection = 0; } LABEL_178: if ( (v27 & 1) != 0 || (v52 = fabs(v41), v52 > v5) ) { if ( a1->m_isOnIce ) { v53 = 0.150000006; } else { v53 = 0.150000006; if ( !a1->m_isMoving ) v53 = 1.0; } v54 = v41 + -(v21 * v41) * v12 * v53; a1->m_platformerXVelocity = v54; if ( fabs(v54) >= 0.00999999978 && (!a1->m_isPlatformer || (m_platformerXVelocity <= 0.0 || v54 >= 0.0) && (m_platformerXVelocity >= 0.0 || v54 <= 0.0)) ) { goto LABEL_200; } a1->m_platformerXVelocity = 0.0; LABEL_186: a1->m_maybeHasStopped = 0; a1->m_affectedByForces = 0; a1->m_maybeGoingCorrectSlopeDirection = 0; a1->m_isMoving = 0; goto LABEL_200; } if ( a1->m_isPlatformer ) { v55 = m_platformerXVelocity > 0.0; if ( v41 >= 0.0 ) v55 = 0; if ( v52 < 0.00999999978 || v55 || m_platformerXVelocity < 0.0 && v41 > 0.0 ) goto LABEL_186; } LABEL_200: if ( *p_m_maybeHasStopped ) { if ( a1->m_isOnIce ) { v56 = 0.150000006; } else { v56 = 0.150000006; if ( !a1->m_isMoving ) v56 = 1.0; } v57 = a1->m_xVelocityRelated + -(v21 * a1->m_xVelocityRelated) * v12 * v56; a1->m_xVelocityRelated = v57; if ( fabsf(v57) < 1.0 ) *p_m_maybeHasStopped = 0; } if ( a1->m_isDashing ) { a1->m_platformerXVelocity = v5; goto LABEL_221; } m_isGoingLeft = a1->m_isGoingLeft; if ( m_leftPressedFirst && !a1->m_isGoingLeft ) { v59 = 1; goto LABEL_215; } if ( (v8 & 1) != 0 && a1->m_isGoingLeft ) { v59 = 0; LABEL_215: PlayerObject::doReversePlayer(a1, v59); } if ( m_isGoingLeft == a1->m_isGoingLeft ) goto LABEL_221; PlayerObject::exitPlatformerAnimateJump(a1); if ( a1->m_isShip || a1->m_isBird ) { v60.n128_f32[0] = -((float (__fastcall *)(PlayerObject *))a1->getRotation)(a1); LABEL_220: ((void (__fastcall *)(PlayerObject *, __n128))a1->setRotation)(a1, v60); goto LABEL_221; } if ( !a1->m_isDart && !a1->m_isSwing && !a1->m_isBall && !a1->m_isRobot && !a1->m_isSpider && !a1->m_isRotating ) { ((void (__fastcall *)(PlayerObject *))a1->getRotation)(a1); if ( a1->m_isOnSlope ) v67 = v67 + a1->m_slopeRotation * -57.2957802; if ( (v68 = fabsf(v67), v68 > 45.0) && v68 < 135.0 || v68 > 225.0 && v68 < 315.0 ) { v60.n128_f32[0] = ((float (__fastcall *)(PlayerObject *))a1->getRotation)(a1) + 180.0; goto LABEL_220; } } LABEL_221: if ( a1->m_isShip || a1->m_isBird || a1->m_isDart || a1->m_isSwing || a1->m_isBall || a1->m_isRobot || a1->m_isSpider ) { v61 = 1; goto LABEL_229; } if ( a1->m_platformerXVelocity == 0.0 ) goto LABEL_319; v61 = 0; if ( a1->m_isRotating || !m_platformerMovingRight ) { LABEL_229: if ( !a1->m_isOnSlope && ((v61 | m_platformerMovingRight | a1->m_wasOnSlope) & 1) == 0 && !a1->m_isOnGround2 && !a1->m_isRotating ) { HIDWORD(v62) = -1527099483 * (int)((float (__fastcall *)(PlayerObject *))a1->getRotation)(a1) + 47721858; LODWORD(v62) = HIDWORD(v62); if ( (unsigned int)(v62 >> 1) >= 0x2D82D83 ) { v63 = PlayerObject::convertToClosestRotation(a1, 0.0); PlayerObject::updateRotation(a1, a2, v63); } } if ( (v28 & 1) != 0 ) goto LABEL_263; goto LABEL_236; } if ( fabs(a1->m_yVelocity) <= 1.0 ) { LABEL_319: v61 = 0; goto LABEL_229; } PlayerObject::runRotateAction(a1, 0, v2); PlayerObject::exitPlatformerAnimateJump(a1); if ( (v28 & 1) != 0 ) goto LABEL_263; LABEL_236: if ( !a1->m_isOnGround2 ) { LABEL_263: m_totalTime = a1->m_totalTime; a1->m_somethingPlayerSpeedTime = m_totalTime; goto LABEL_264; } if ( a1->m_totalTime - a1->m_somethingPlayerSpeedTime > a1->m_playerSpeedAC ) { a1->m_playerSpeedAC = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 10.0) + 5.0; v64 = a1->m_totalTime; a1->m_somethingPlayerSpeedTime = v64; if ( a1->m_isRobot ) { v65 = a1->m_robotSprite; sub_100009900(v92, "idle02"); CCAnimatedSprite::runAnimation(v65, v92); if ( v93 < 0 ) { v66 = (void *)v92[0]; LABEL_257: operator delete(v66); } } else if ( a1->m_isSpider ) { v69 = a1->m_spiderSprite; sub_100009900(v90, "idle02"); CCAnimatedSprite::runAnimation(v69, v90); if ( v91 < 0 ) { v66 = v90[0]; goto LABEL_257; } } } LABEL_264: if ( !a1->m_isBall || a1->m_isBallRotating2 || a1->m_isDashing ) goto LABEL_293; m_isSideways = a1->m_isSideways; v72 = a1->m_platformerXVelocity; if ( a1->m_isOnIce ) { if ( v72 < 0.0 ) { m_xVelocityRelated2 = a1->m_xVelocityRelated2; if ( m_xVelocityRelated2 > 0.0 && m_leftPressedFirst ) goto LABEL_273; } v74 = v72 > 0.0; m_xVelocityRelated2 = a1->m_xVelocityRelated2; if ( m_xVelocityRelated2 >= 0.0 ) v74 = 0; if ( (v74 & v8 & 1) != 0 || (v72 < m_xVelocityRelated2 ? (v83 = m_xVelocityRelated2 < 0.0) : (v83 = 0), !v83 ? (v84 = 0) : (v84 = 1), v72 > m_xVelocityRelated2 ? (v85 = m_xVelocityRelated2 <= 0.0) : (v85 = 1), v85 ? (v86 = 0) : (v86 = 1), (v86 & 1) != 0 || (v84 & 1) != 0) ) { LABEL_273: v75 = 0.2; } else { v75 = 0.1; } if ( m_xVelocityRelated2 > 0.0 && ((v72 > m_xVelocityRelated2) & (unsigned __int8)v8) != 0 || m_xVelocityRelated2 < 0.0 && v72 < m_xVelocityRelated2 && m_leftPressedFirst ) { v75 = 0.3; } if ( m_leftPressedFirst ) goto LABEL_280; if ( (v8 & 1) == 0 ) { if ( a1->m_platformerMovingLeft || v72 < m_xVelocityRelated2 ) { LABEL_280: m_xVelocityRelated2 = m_xVelocityRelated2 - (float)(a2 * v75); goto LABEL_284; } if ( !a1->m_platformerMovingRight && v72 <= m_xVelocityRelated2 ) { if ( m_xVelocityRelated2 <= 0.0 ) { if ( m_xVelocityRelated2 >= 0.0 ) goto LABEL_285; v88 = -m_xVelocityRelated2; v89 = (float)(v75 * a2) * 0.5; if ( v89 < (float)-m_xVelocityRelated2 ) v88 = v89; m_xVelocityRelated2 = m_xVelocityRelated2 + v88; } else { v87 = (float)(v75 * a2) * 0.5; if ( m_xVelocityRelated2 <= v87 ) v87 = m_xVelocityRelated2; m_xVelocityRelated2 = m_xVelocityRelated2 - v87; } LABEL_284: a1->m_xVelocityRelated2 = m_xVelocityRelated2; LABEL_285: v76 = cocos2d::clampf(m_xVelocityRelated2, -5.0, 5.0); a1->m_xVelocityRelated2 = v76; goto LABEL_286; } } m_xVelocityRelated2 = m_xVelocityRelated2 + (float)(a2 * v75); goto LABEL_284; } v76 = v72; LABEL_286: v77 = v76 * a2; v78 = -(float)(v76 * a2); if ( !a1->m_isUpsideDown ) v78 = v77; if ( m_isSideways ) v78 = -v78; v79 = (float)(v78 * 2.8); if ( a1->m_isOnSlope ) { m_slopeRotation = a1->m_slopeRotation; v79 = v79 / cosf(m_slopeRotation); } v81 = v79 + ((float (__fastcall *)(PlayerObject *))a1->getRotation)(a1); ((void (__fastcall *)(PlayerObject *, float))a1->setRotation)(a1, v81); LABEL_293: if ( !a1->m_isOnIce ) { v82 = a1->m_platformerXVelocity; a1->m_xVelocityRelated2 = v82; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source