// // PlayerObject::updatePlayerArt from 0x1002291d0 to 0x100229548 (888 bytes) // // 13 xrefs: // > PlayerObject::doReversePlayer @ 0x10021d334 // > PlayerObject::flipGravity @ 0x10021e264 // > PlayerObject::rotateGameplay @ 0x100226cf0 // > PlayerObject::rotateGameplayOnly @ 0x10022954c // > PlayerObject::toggleFlyMode @ 0x1002298ec // > PlayerObject::modeDidChange @ 0x100229e04 // > PlayerObject::toggleBirdMode @ 0x10022a078 // > PlayerObject::toggleSwingMode @ 0x10022a4c4 // > PlayerObject::toggleDartMode @ 0x10022ac00 // > PlayerObject::toggleRollMode @ 0x10022af08 // > PlayerObject::toggleRobotMode @ 0x10022b360 // > PlayerObject::toggleSpiderMode @ 0x10022b630 // > PlayerObject::loadFromCheckpoint @ 0x10022e254 // // 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::updatePlayerArt(PlayerObject *a1) { __n128 v1; // q0 cocos2d::CCNode *m_mainLayer; // x0 float v4; // s8 bool *p_m_isSideways; // x20 cocos2d::CCNode *v6; // x0 float v7; // s0 __n128 v8; // q0 float v9; // s0 float v10; // s1 float v11; // s8 __n128 v12; // q0 __n128 v13; // q1 __n128 v14; // q0 __n128 v15; // q1 float v16; // s0 float v17; // s1 float v18; // s8 __n128 v19; // q0 __n128 v20; // q1 __n128 v21; // q0 __n128 v22; // q1 __n128 v23; // q0 __n128 v24; // q1 double v25; // [xsp+8h] [xbp-38h] BYREF int32x2_t v26; // [xsp+10h] [xbp-30h] BYREF int32x2_t v27; // [xsp+18h] [xbp-28h] BYREF m_mainLayer = a1->m_mainLayer; v4 = 1.0; v1.n128_u32[0] = -1.0; if ( !a1->m_isGoingLeft ) v1.n128_f32[0] = 1.0; ((void (__fastcall *)(cocos2d::CCNode *, __n128))m_mainLayer->setScaleX)(m_mainLayer, v1); if ( a1->m_isSwing || a1->m_isBall ) { p_m_isSideways = &a1->m_isSideways; v6 = a1->m_mainLayer; goto LABEL_16; } if ( a1->m_isShip || a1->m_isBird || a1->m_isDart || a1->m_isRobot ) { p_m_isSideways = &a1->m_isSideways; v6 = a1->m_mainLayer; } else { p_m_isSideways = &a1->m_isSideways; v6 = a1->m_mainLayer; if ( !a1->m_isSpider ) goto LABEL_16; } v7 = 1.0; if ( a1->m_isUpsideDown ) v7 = -1.0; if ( a1->m_isSideways ) v4 = -v7; else v4 = v7; LABEL_16: ((void (__fastcall *)(cocos2d::CCNode *, float))v6->setScaleY)(v6, v4); if ( a1->m_isSideways ) v8.n128_f32[0] = -90.0; else v8.n128_f32[0] = 0.0; ((void (__fastcall *)(cocos2d::CCNode *, __n128))a1->m_mainLayer->setRotation)(a1->m_mainLayer, v8); v9 = 90.0; if ( a1->m_isUpsideDown ) v9 = -90.0; v10 = 180.0; if ( !a1->m_isUpsideDown ) v10 = 0.0; if ( a1->m_isSideways ) v11 = v10; else v11 = v9; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_playerGroundParticles->setAngle)( a1->m_playerGroundParticles, v11); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_trailingParticles->setAngle)( a1->m_trailingParticles, v11); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_shipClickParticles->setAngle)( a1->m_shipClickParticles, v11); v13.n128_u32[0] = 1133903872; if ( !a1->m_isUpsideDown ) v13.n128_f32[0] = -300.0; v12.n128_u32[0] = 0; sub_100022980(v12, v13, &v27); if ( a1->m_isSideways ) v27 = vrev64_s32(v27); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int32x2_t *))a1->m_playerGroundParticles->setGravity)( a1->m_playerGroundParticles, &v27); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int32x2_t *))a1->m_trailingParticles->setGravity)( a1->m_trailingParticles, &v27); v14 = ((__n128 (__fastcall *)(cocos2d::CCParticleSystemQuad *, int32x2_t *))a1->m_shipClickParticles->setGravity)( a1->m_shipClickParticles, &v27); v14.n128_u32[0] = 0; v15.n128_u32[0] = 2.0; sub_100022980(v14, v15, &v26); if ( a1->m_isSideways ) v26 = vrev64_s32(v26); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int32x2_t *))a1->m_trailingParticles->setPosVar)( a1->m_trailingParticles, &v26); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int32x2_t *))a1->m_shipClickParticles->setPosVar)( a1->m_shipClickParticles, &v26); v16 = 330.0; if ( a1->m_isUpsideDown ) v16 = -330.0; v17 = 240.0; if ( a1->m_isUpsideDown ) v17 = 60.0; if ( a1->m_isSideways ) v18 = v17; else v18 = v16; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_ufoClickParticles->setAngle)( a1->m_ufoClickParticles, v18); v19 = ((__n128 (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_robotBurstParticles->setAngle)( a1->m_robotBurstParticles, v18); v19.n128_u32[0] = 5.0; v20.n128_u32[0] = 1.0; sub_100022980(v19, v20, &v25); sub_1000229D0(&v26, &v25); if ( a1->m_isSideways ) v26 = vrev64_s32(v26); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int32x2_t *))a1->m_ufoClickParticles->setPosVar)( a1->m_ufoClickParticles, &v26); v21 = ((__n128 (__fastcall *)(cocos2d::CCParticleSystemQuad *, int32x2_t *))a1->m_robotBurstParticles->setPosVar)( a1->m_robotBurstParticles, &v26); v21.n128_u32[0] = 5.0; v22.n128_u32[0] = 1.0; sub_100022980(v21, v22, &v25); v23.n128_f64[0] = sub_1000229D0(&v26, &v25); if ( a1->m_isRobot || a1->m_isSpider ) { v23.n128_u32[0] = 15.0; v24.n128_u32[0] = 0; sub_100022980(v23, v24, &v25); sub_1000229D0(&v26, &v25); } if ( *p_m_isSideways ) v26 = vrev64_s32(v26); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int32x2_t *))a1->m_playerGroundParticles->setPosVar)( a1->m_playerGroundParticles, &v26); }
GD Web Decomp Icon

GD Web Decomp

Raw Source