// // PlayerObject::updateDashAnimation from 0x623658 to 0x623840 (488 bytes) // // 2 xrefs: // > PlayerObject::update @ 0x63f9cc // > @ 0x97998 // // 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::updateDashAnimation(PlayerObject *a1) { float v2; // s8 float v3; // s1 unsigned int v4; // w19 cocos2d::CCSprite *m_dashFireSprite; // x1 cocos2d::CCArray *v6; // x0 __int64 v7; // x22 cocos2d::CCString *v8; // x0 const char *CString; // x23 cocos2d::CCString *v10; // x0 const char *v11; // x25 cocos2d::CCSprite *v12; // x24 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x26 cocos2d::CCSpriteFrameCache *v14; // x0 cocos2d::CCSpriteFrame *v15; // x0 void (__fastcall *v16)(__int64, cocos2d::CCSpriteFrame *); // x23 cocos2d::CCSpriteFrameCache *v17; // x0 cocos2d::CCSpriteFrame *v18; // x0 const cocos2d::CCSize *v19; // x0 void (__fastcall *v20)(__int64, cocos2d::CCPoint *); // x19 cocos2d::CCSize v21; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v22; // [xsp+80h] [xbp+80h] BYREF v2 = (float)(0.04 / a1->m_playerSpeed) * (1.0 - fabsf(a1->m_dashFireSprite->getRotation(a1->m_dashFireSprite)) / 70.0 * 0.400000006); v3 = a1->m_totalTime / v2; v4 = (int)vcvtms_s32_f32(v3) % 12 + 1; if ( a1->m_dashFireFrame != v4 ) { m_dashFireSprite = a1->m_dashFireSprite; a1->m_dashFireFrame = v4; v6 = m_dashFireSprite->getChildren(m_dashFireSprite); v7 = cocos2d::CCArray::objectAtIndex(v6, 0); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"playerDash2_%03d.png", (const char *)v4); CString = cocos2d::CCString::getCString(v8); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"playerDash2_outline_%03d.png", (const char *)v4); v11 = cocos2d::CCString::getCString(v10); if ( CString ) { v12 = a1->m_dashFireSprite; setDisplayFrame = v12->setDisplayFrame; v14 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, CString); setDisplayFrame(v12, v15); v16 = *(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v7 + 1144LL); v17 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v18 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, v11); v16(v7, v18); v19 = a1->m_dashFireSprite->getContentSize(a1->m_dashFireSprite); cocos2d::CCSize::CCSize(&v21, v19); v20 = *(void (__fastcall **)(__int64, cocos2d::CCPoint *))(*(_QWORD *)v7 + 184LL); cocos2d::CCPoint::CCPoint(&v22, v21.width * 0.5, v21.height * 0.5); v20(v7, &v22); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source