// // PlayerObject::playSpiderDashEffect from 0x10040e490 to 0x10040ec67 (2007 bytes) // // 1 xrefs: // > PlayerObject::spiderTestJumpInternal @ 0x10040e379 // // 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::playSpiderDashEffect(PlayerObject *a1, cocos2d::CCPoint a2, cocos2d::CCPoint a3) { float *v3; // rdx float *v4; // rsi float *v5; // r15 float v6; // xmm0_4 bool m_isSideways; // r13 CCCircleWave *v8; // r12 __int64 v9; // rax __int16 v10; // cx PlayLayer *m_playLayer; // rax CCCircleWaveDelegate *v12; // rcx GameManager *v13; // rax CCCircleWave *v14; // r12 __int64 v15; // rax __int16 v16; // cx PlayLayer *v17; // rax CCCircleWaveDelegate *v18; // rcx GameManager *v19; // rax CCCircleWave *v20; // r12 __int64 v21; // rax __int16 v22; // cx PlayLayer *v23; // rax CCCircleWaveDelegate *v24; // rcx GameManager *v25; // rax cocos2d::CCScaleTo *v26; // rax cocos2d::CCEaseElasticOut *v27; // r12 cocos2d::CCSprite *v28; // rax cocos2d::CCNode *v29; // r12 __int64 v30; // xmm0_8 __int64 v31; // xmm1_8 cocos2d::CCSprite_vtbl *v32; // rax GameManager *v33; // rax float v34; // xmm0_4 float *v35; // rax float v36; // xmm1_4 float v37; // xmm0_4 cocos2d::ccColor3B *v38; // rsi cocos2d::CCArray *v39; // r14 cocos2d::CCSpriteFrameCache *v40; // r13 cocos2d::CCString *v41; // rax const char *CString; // rax cocos2d::CCSpriteFrame *v43; // rax cocos2d::CCSpriteFrameCache *v44; // r13 cocos2d::CCString *v45; // rax const char *v46; // rax cocos2d::CCSpriteFrame *v47; // rax cocos2d::CCSpriteFrameCache *v48; // r13 cocos2d::CCString *v49; // rax const char *v50; // rax cocos2d::CCSpriteFrame *v51; // rax cocos2d::CCSpriteFrameCache *v52; // r13 cocos2d::CCString *v53; // rax const char *v54; // rax cocos2d::CCSpriteFrame *v55; // rax cocos2d::CCSpriteFrameCache *v56; // r13 cocos2d::CCString *v57; // rax const char *v58; // rax cocos2d::CCSpriteFrame *v59; // rax cocos2d::CCSpriteFrameCache *v60; // r13 cocos2d::CCString *v61; // rax const char *v62; // rax cocos2d::CCSpriteFrame *v63; // rax cocos2d::CCSpriteFrameCache *v64; // r13 cocos2d::CCString *v65; // rax const char *v66; // rax cocos2d::CCSpriteFrame *v67; // rax cocos2d::CCSpriteFrameCache *v68; // r13 cocos2d::CCString *v69; // rax const char *v70; // rax cocos2d::CCSpriteFrame *v71; // rax cocos2d::CCAnimation *v72; // rax cocos2d::CCAnimate *v73; // r14 cocos2d::CCCallFunc *v74; // rax cocos2d::CCSequence *v75; // rax char v76; // [rsp+0h] [rbp-40h] char v77; // [rsp+0h] [rbp-40h] char v78; // [rsp+0h] [rbp-40h] char v79; // [rsp+0h] [rbp-40h] char v80; // [rsp+0h] [rbp-40h] char v81; // [rsp+0h] [rbp-40h] char v82; // [rsp+0h] [rbp-40h] char v83; // [rsp+0h] [rbp-40h] float v84[12]; // [rsp+10h] [rbp-30h] BYREF if ( a1->m_playEffects && !a1->m_isHidden ) { v5 = v3; if ( a1->m_isGoingLeft ) v6 = -7.5; else v6 = 7.5; m_isSideways = a1->m_isSideways; *v4 = *v4 + v6; *v3 = v6 + *v3; if ( !GameManager::sharedState()->m_performanceMode ) { *v5 = *v5 + 6.0; v8 = CCCircleWave::create((float)(a1->m_vehicleSize * 10.0) * 1.3, 1.0, 0.15000001, 0, 0); v9 = 3 * !a1->m_swapColors; v10 = *(_WORD *)(&a1->m_playerColor1.r + v9); v8->m_color.b = *(&a1->m_playerColor1.b + v9); *(_WORD *)&v8->m_color.r = v10; ((void (__fastcall *)(CCCircleWave *))v8->setPosition)(v8); ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v8, 0); m_playLayer = GameManager::sharedState()->m_playLayer; v12 = &m_playLayer->CCCircleWaveDelegate; if ( !m_playLayer ) v12 = nullptr; v8->m_delegate = v12; v13 = GameManager::sharedState(); PlayLayer::addCircle(v13->m_playLayer, v8); v8->m_opacityMod = 0.42000002; v14 = CCCircleWave::create((float)(a1->m_vehicleSize * 20.0) * 1.3, 2.0, 0.25, 0, 0); v15 = 3 * !a1->m_swapColors; v16 = *(_WORD *)(&a1->m_playerColor1.r + v15); v14->m_color.b = *(&a1->m_playerColor1.b + v15); *(_WORD *)&v14->m_color.r = v16; ((void (__fastcall *)(CCCircleWave *, float *))v14->setPosition)(v14, v5); ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v14, 0); v17 = GameManager::sharedState()->m_playLayer; v18 = &v17->CCCircleWaveDelegate; if ( !v17 ) v18 = nullptr; v14->m_delegate = v18; v19 = GameManager::sharedState(); PlayLayer::addCircle(v19->m_playLayer, v14); v14->m_opacityMod = 0.84000003; v20 = CCCircleWave::create(10.0 * a1->m_vehicleSize, (float)(a1->m_vehicleSize * 30.0) * 1.5, 0.25, 0, 0); v21 = 3 * !a1->m_swapColors; v22 = *(_WORD *)(&a1->m_playerColor1.r + v21); v20->m_color.b = *(&a1->m_playerColor1.b + v21); *(_WORD *)&v20->m_color.r = v22; ((void (__fastcall *)(CCCircleWave *, float *))v20->setPosition)(v20, v5); ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, _QWORD))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v20, 0); v23 = GameManager::sharedState()->m_playLayer; v24 = &v23->CCCircleWaveDelegate; if ( !v23 ) v24 = nullptr; v20->m_delegate = v24; v25 = GameManager::sharedState(); PlayLayer::addCircle(v25->m_playLayer, v20); v20->m_circleMode = Outline; } a1->m_flashMainColor.b = -1; *(_WORD *)&a1->m_flashMainColor.r = -1; a1->m_flashSecondColor.b = -1; *(_WORD *)&a1->m_flashSecondColor.r = -1; ((void (__fastcall *)(PlayerObject *, cocos2d::ccColor3B *))a1->setColor)(a1, &a1->m_flashMainColor); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_iconSpriteSecondary->setColor)( a1->m_iconSpriteSecondary, &a1->m_flashSecondColor); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_vehicleSpriteSecondary->setColor)( a1->m_vehicleSpriteSecondary, &a1->m_flashSecondColor); GJRobotSprite::updateColor02( a1->m_robotSprite, (cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_flashSecondColor.r | (a1->m_flashSecondColor.b << 16))); GJRobotSprite::updateColor02( a1->m_spiderSprite, (cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_flashSecondColor.r | (a1->m_flashSecondColor.b << 16))); a1->m_flashTime = a1->m_totalTime; *(_QWORD *)&a1->m_flashDuration = 0x3D4CCCCD3E99999ALL; cocos2d::CCNode::stopActionByTag(a1->m_spiderSprite, 10); ((void (__fastcall *)(GJSpiderSprite *, float))a1->m_spiderSprite->setScale)(a1->m_spiderSprite, 0.40000001); v26 = cocos2d::CCScaleTo::create_1(0.44999999, 1.0); v27 = cocos2d::CCEaseElasticOut::create(v26, 0.34999999); ((void (__fastcall *)(cocos2d::CCEaseElasticOut *, __int64))v27->setTag)(v27, 10); cocos2d::CCNode::runAction(a1->m_spiderSprite, v27); if ( a1->m_playEffects ) { v28 = cocos2d::CCSprite::createWithSpriteFrameName("spiderDash_002.png"); v29 = v28; if ( a1->m_isUpsideDown ) { v30 = 1127481344; v31 = 1119092736; v32 = v28->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( !a1->m_isSideways ) goto LABEL_21; } else { v30 = 0; v31 = 3266576384LL; v32 = v28->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( !a1->m_isSideways ) LABEL_21: v30 = v31; } ((void (__fastcall *)(cocos2d::CCNode *, double, double))v32->setRotation)(v29, *(double *)&v30, *(double *)&v31); v33 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCNode *, __int64))v33->m_playLayer->m_objectLayer->addChild_0)( v33->m_playLayer->m_objectLayer, v29, 40); ((void (__fastcall *)(cocos2d::CCNode *, __int64))v29->__vftable[1].setPosition)(v29, 0x100000302LL); v34 = fabs(v4[!m_isSideways] - v5[!m_isSideways]) + 30.0; v76 = LOBYTE(v34); v35 = (float *)((__int64 (__fastcall *)(cocos2d::CCNode *))v29->getContentSize)(v29); ((void (__fastcall *)(cocos2d::CCNode *, float))v29->setScaleX)(v29, v34 / *v35); if ( a1->m_isSideways ) { v36 = v4[1]; v37 = (float)((float)(*v5 - *v4) * 0.5) + *v4; } else { v37 = *v4; v36 = (float)((float)(v5[1] - v4[1]) * 0.5) + v4[1]; } sub_10028CBE0(v84, v37, v36); ((void (__fastcall *)(cocos2d::CCNode *, float *))v29->setPosition)(v29, v84); v38 = &a1->m_playerColor1 + !a1->m_swapColors; ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::ccColor3B *))v29->__vftable[1].getTag)(v29, v38); v39 = (cocos2d::CCArray *)sub_10071F9E0(v29, v38); v40 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v41 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v76); CString = cocos2d::CCString::getCString(v41); v43 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v40, CString); sub_10071FCD0(v39, v43); v44 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v45 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v77); v46 = cocos2d::CCString::getCString(v45); v47 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v44, v46); sub_10071FCD0(v39, v47); v48 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v49 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v78); v50 = cocos2d::CCString::getCString(v49); v51 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v48, v50); sub_10071FCD0(v39, v51); v52 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v53 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v79); v54 = cocos2d::CCString::getCString(v53); v55 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v52, v54); sub_10071FCD0(v39, v55); v56 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v57 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v80); v58 = cocos2d::CCString::getCString(v57); v59 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v56, v58); sub_10071FCD0(v39, v59); v60 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v61 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v81); v62 = cocos2d::CCString::getCString(v61); v63 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v60, v62); sub_10071FCD0(v39, v63); v64 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v65 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v82); v66 = cocos2d::CCString::getCString(v65); v67 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v64, v66); sub_10071FCD0(v39, v67); v68 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v69 = (cocos2d::CCString *)sub_1007AB580("spiderDash_%03d.png", v83); v70 = cocos2d::CCString::getCString(v69); v71 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v68, v70); sub_10071FCD0(v39, v71); v72 = cocos2d::CCAnimation::createWithSpriteFrames(v39, 0.039999999); v73 = cocos2d::CCAnimate::create(v72); v74 = cocos2d::CCCallFunc::create(v29, (cocos2d::SEL_CallFunc)0x209uLL); v75 = sub_1003B5760(v73, v74, 0); cocos2d::CCNode::runAction(v29, v75); } } if ( !a1->m_isHidden && (!a1->m_isSpider || !a1->m_isPlatformer) ) cocos2d::CCParticleSystem::resetSystem(a1->m_playerGroundParticles); }
GD Web Decomp Icon

GD Web Decomp

Raw Source