// // PlayerObject::updatePlayerArt from 0x33fe5c to 0x3400da (638 bytes) // // 5 xrefs: // > PlayerObject::rotateGameplayOnly @ 0x340104 // > PlayerObject::modeDidChange @ 0x34010c // > PlayerObject::doReversePlayer @ 0x3424ce // > PlayerObject::flipGravity @ 0x345244 // > PlayerObject::rotateGameplay @ 0x346800 // // 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::updatePlayerArt(PlayerObject *a1) { cocos2d::CCNode *m_mainLayer; // r5 void (__fastcall *setScaleX)(cocos2d::CCNode *__hidden, float); // r7 int v4; // r0 _BOOL4 v5; // r0 float v6; // s15 cocos2d::CCNode *v7; // r5 void (__fastcall *setScaleY)(cocos2d::CCNode *__hidden, float); // r7 float v9; // s16 float v10; // s16 int v11; // r1 int v12; // r0 int v13; // r0 float y; // r2 float v15; // r2 int v16; // r0 float v17; // s16 float v18; // r2 float v19; // r2 cocos2d::CCPoint v20; // [sp+4h] [bp-20h] BYREF cocos2d::CCPoint v21; // [sp+Ch] [bp-18h] BYREF cocos2d::CCPoint v22; // [sp+14h] [bp-10h] BYREF m_mainLayer = a1->m_mainLayer; setScaleX = m_mainLayer->setScaleX; v4 = PlayerObject::reverseMod(a1); ((void (__fastcall *)(_DWORD, _DWORD))setScaleX)(m_mainLayer, (float)v4); v5 = a1->m_isSwing || a1->m_isBall || PlayerObject::isInNormalMode(a1); v6 = 1.0; v7 = a1->m_mainLayer; setScaleY = v7->setScaleY; v9 = -1.0; if ( !a1->m_isSideways ) v9 = 1.0; if ( !v5 ) v6 = (float)PlayerObject::flipMod(a1) * v9; ((void (__fastcall *)(cocos2d::CCNode *, _DWORD))setScaleY)(v7, LODWORD(v6)); v10 = 0.0; if ( a1->m_isSideways ) v11 = -1028390912; else v11 = 0; ((void (__fastcall *)(cocos2d::CCNode *, int))a1->m_mainLayer->setRotation)(a1->m_mainLayer, v11); v12 = PlayerObject::flipMod(a1); if ( a1->m_isSideways ) { if ( a1->m_isUpsideDown ) v10 = 180.0; } else { v10 = (float)(90 * v12); } ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD))a1->m_playerGroundParticles->setAngle)( a1->m_playerGroundParticles, LODWORD(v10)); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD))a1->m_trailingParticles->setAngle)( a1->m_trailingParticles, LODWORD(v10)); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD))a1->m_shipClickParticles->setAngle)( a1->m_shipClickParticles, LODWORD(v10)); v13 = PlayerObject::flipMod(a1); cocos2d::CCPoint::CCPoint(&v20, 0.0, (float)(-300 * v13)); if ( a1->m_isSideways ) { y = v20.y; v20.y = v20.x; v20.x = y; } a1->m_playerGroundParticles->setGravity(a1->m_playerGroundParticles, &v20); a1->m_trailingParticles->setGravity(a1->m_trailingParticles, &v20); a1->m_shipClickParticles->setGravity(a1->m_shipClickParticles, &v20); cocos2d::CCPoint::CCPoint(&v21, 0.0, 2.0); if ( a1->m_isSideways ) { v15 = v21.y; v21.y = v21.x; v21.x = v15; } a1->m_trailingParticles->setPosVar(a1->m_trailingParticles, &v21); a1->m_shipClickParticles->setPosVar(a1->m_shipClickParticles, &v21); v16 = PlayerObject::flipMod(a1); if ( a1->m_isSideways ) { v17 = 240.0; if ( a1->m_isUpsideDown ) v17 = 60.0; } else { v17 = (float)(330 * v16); } ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD))a1->m_ufoClickParticles->setAngle)( a1->m_ufoClickParticles, LODWORD(v17)); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD))a1->m_robotBurstParticles->setAngle)( a1->m_robotBurstParticles, LODWORD(v17)); cocos2d::CCPoint::CCPoint(&v22, 5.0, 1.0); cocos2d::CCPoint::operator=(&v21, &v22); if ( a1->m_isSideways ) { v18 = v21.y; v21.y = v21.x; v21.x = v18; } a1->m_ufoClickParticles->setPosVar(a1->m_ufoClickParticles, &v21); a1->m_robotBurstParticles->setPosVar(a1->m_robotBurstParticles, &v21); cocos2d::CCPoint::CCPoint(&v22, 5.0, 1.0); cocos2d::CCPoint::operator=(&v21, &v22); if ( a1->m_isRobot || a1->m_isSpider ) { cocos2d::CCPoint::CCPoint(&v22, 15.0, 0.0); cocos2d::CCPoint::operator=(&v21, &v22); } if ( a1->m_isSideways ) { v19 = v21.y; v21.y = v21.x; v21.x = v19; } a1->m_playerGroundParticles->setPosVar(a1->m_playerGroundParticles, &v21); }
GD Web Decomp Icon

GD Web Decomp

Raw Source