// // PlayerObject::updateDashArt from 0x625dc0 to 0x62634c (1420 bytes) // // 5 xrefs: // > PlayerObject::modeDidChange @ 0x626c1c // > PlayerObject::redirectDash @ 0x62a654 // > PlayerObject::startDashing @ 0x62a928 // > PlayerObject::rotateGameplay @ 0x630744 // > @ 0x926a0 // // 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::updateDashArt(PlayerObject *a1) { long double v2; // q0 cocos2d::CCSprite *v3; // x22 void (__fastcall *v4)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 GJSpiderSprite *m_spiderSprite; // x22 cocos2d::CCPoint v6; // x2 void *v7; // x0 float v8; // s8 cocos2d::CCRotateBy *m_isPlatformer; // x0 float v10; // s8 cocos2d::CCActionInterval *v11; // x0 cocos2d::CCRepeatForever *v12; // x21 cocos2d::CCRotateBy *v13; // x0 cocos2d::CCActionInterval *v14; // x0 cocos2d::CCRepeatForever *v15; // x21 cocos2d::CCSprite *m_dashFireSprite; // x22 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCSprite *v18; // x22 void (__fastcall *v19)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCSprite *v20; // x22 void (__fastcall *v21)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCSprite *v22; // x22 void (__fastcall *v23)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 GJRobotSprite *m_robotSprite; // x22 unsigned int *v25; // x2 int v26; // w1 float m_dashX; // s0 float m_dashY; // s1 float v29; // s0 unsigned int *v30; // x2 cocos2d::CCPoint v31; // [xsp+60h] [xbp+60h] BYREF if ( !a1->m_isDashing ) return; cocos2d::CCNode::stopActionByTag(a1->m_iconSprite, 12); cocos2d::CCNode::stopActionByTag(a1->m_iconGlow, 12); a1->m_iconSprite->setRotation(a1->m_iconSprite, 0.0); a1->m_iconGlow->setRotation(a1->m_iconGlow, 0.0); if ( a1->m_isSideways ) { *(double *)&v2 = 90.0 - a1->m_dashAngle; *(float *)&v2 = *(double *)&v2; if ( !a1->m_isGoingLeft ) { LABEL_5: a1->setRotation(a1, v2); cocos2d::CCNode::stopAllActions(a1->m_dashFireSprite); if ( !a1->m_isShip ) goto LABEL_6; LABEL_18: m_dashFireSprite = a1->m_dashFireSprite; setPosition = m_dashFireSprite->setPosition; cocos2d::CCPoint::CCPoint(&v31, 0.0, -2.0); setPosition(m_dashFireSprite, &v31); a1->m_dashFireSprite->setScaleX(a1->m_dashFireSprite, 1.0); a1->m_dashFireSprite->setScaleY(a1->m_dashFireSprite, 0.85); goto LABEL_10; } } else { *(double *)&v2 = 0.0 - a1->m_dashAngle; *(float *)&v2 = *(double *)&v2; if ( !a1->m_isGoingLeft ) goto LABEL_5; } a1->setRotation(a1, *(float *)&v2 + 180.0); cocos2d::CCNode::stopAllActions(a1->m_dashFireSprite); if ( a1->m_isShip ) goto LABEL_18; LABEL_6: if ( a1->m_isBird ) { v18 = a1->m_dashFireSprite; v19 = v18->setPosition; cocos2d::CCPoint::CCPoint(&v31, 0.0, 0.0); v19(v18, &v31); a1->m_dashFireSprite->setScaleX(a1->m_dashFireSprite, 0.95); a1->m_dashFireSprite->setScaleY(a1->m_dashFireSprite, 0.9); goto LABEL_10; } if ( a1->m_isRobot ) { v22 = a1->m_dashFireSprite; v23 = v22->setPosition; cocos2d::CCPoint::CCPoint(&v31, 1.0, 0.0); v23(v22, &v31); a1->m_dashFireSprite->setScaleX(a1->m_dashFireSprite, 0.9); a1->m_dashFireSprite->setScaleY(a1->m_dashFireSprite, 0.85); m_robotSprite = a1->m_robotSprite; sub_D153B8((int)&v31, "fall_loop"); CCAnimatedSprite::runAnimation((__int64)m_robotSprite, (__int64)&v31); v6 = v31; v7 = (void *)(*(_QWORD *)&v31 - 24LL); if ( (__int64 *)(*(_QWORD *)&v31 - 24LL) == &qword_124B6B0 ) goto LABEL_10; if ( &pthread_create ) { v25 = (unsigned int *)(*(_QWORD *)&v31 - 8LL); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); LABEL_27: if ( v26 <= 0 ) operator delete(v7); goto LABEL_10; } LABEL_37: v26 = *(_DWORD *)(*(_QWORD *)&v6 - 8LL); *(_DWORD *)(*(_QWORD *)&v6 - 8LL) = v26 - 1; goto LABEL_27; } if ( !a1->m_isSpider ) { v20 = a1->m_dashFireSprite; v21 = v20->setPosition; cocos2d::CCPoint::CCPoint(&v31, 0.0, 0.0); v21(v20, &v31); a1->m_dashFireSprite->setScaleX(a1->m_dashFireSprite, 0.9); a1->m_dashFireSprite->setScaleY(a1->m_dashFireSprite, 0.8); goto LABEL_10; } v3 = a1->m_dashFireSprite; v4 = v3->setPosition; cocos2d::CCPoint::CCPoint(&v31, 1.0, 0.0); v4(v3, &v31); a1->m_dashFireSprite->setScaleX(a1->m_dashFireSprite, 0.95); a1->m_dashFireSprite->setScaleY(a1->m_dashFireSprite, 0.8); m_spiderSprite = a1->m_spiderSprite; sub_D153B8((int)&v31, "fall_loop"); CCAnimatedSprite::runAnimation((__int64)m_spiderSprite, (__int64)&v31); v6 = v31; v7 = (void *)(*(_QWORD *)&v31 - 24LL); if ( (__int64 *)(*(_QWORD *)&v31 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v30 = (unsigned int *)(*(_QWORD *)&v31 - 8LL); do v26 = __ldaxr(v30); while ( __stlxr(v26 - 1, v30) ); goto LABEL_27; } goto LABEL_37; } LABEL_10: if ( !PlayerObject::isFlying(a1) && !a1->m_isRobot && !a1->m_isSpider ) { a1->m_iconSprite->setScale(a1->m_iconSprite, 0.9); a1->m_iconGlow->setScale(a1->m_iconGlow, 0.9); if ( a1->m_isSideways == a1->m_isUpsideDown ) v8 = 288.0; else v8 = -288.0; m_isPlatformer = (cocos2d::CCRotateBy *)a1->m_isPlatformer; v10 = v8 * a1->m_gravityMod; if ( a1->m_isPlatformer ) { m_dashX = a1->m_dashX; m_dashY = a1->m_dashY; m_isPlatformer = (cocos2d::CCRotateBy *)cocos2d::CCPoint::CCPoint(&v31, m_dashX, m_dashY); v29 = sqrtf((float)(v31.y * v31.y) + (float)(v31.x * v31.x)); if ( v29 > 17.31 ) v10 = v10 * 2.0; else v10 = v10 * (float)((float)((float)(v29 / 17.31) * 1.7) + 0.3); } v11 = (cocos2d::CCActionInterval *)cocos2d::CCRotateBy::create(m_isPlatformer, 0.3, v10); v12 = cocos2d::CCRepeatForever::create(v11); v12->setTag(v12, 12); v13 = (cocos2d::CCRotateBy *)cocos2d::CCNode::runAction(a1->m_iconSprite, v12); v14 = (cocos2d::CCActionInterval *)cocos2d::CCRotateBy::create(v13, 0.3, v10); v15 = cocos2d::CCRepeatForever::create(v14); v15->setTag(v15, 12); cocos2d::CCNode::runAction(a1->m_iconGlow, v15); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source