// // LevelAreaLayer::addGodRay from 0x1403df240 to 0x1403df5e9 (937 bytes) // // 7 xrefs: // > LevelAreaLayer::init @ 0x1403de007 // > LevelAreaLayer::init @ 0x1403de06f // > LevelAreaLayer::init @ 0x1403de0c1 // > LevelAreaLayer::init @ 0x1403de12c // > LevelAreaLayer::init @ 0x1403de186 // > LevelAreaLayer::init @ 0x1403de1db // > @ 0x140924d94 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:31:40 +0000 // struct cocos2d::CCAction *__fastcall LevelAreaLayer::addGodRay( cocos2d::CCArray **a1, float a2, float a3, float a4, float a5, int a6, __int64 a7) { __int64 v8; // rax struct cocos2d::CCSprite *v9; // rsi __int64 v10; // rbx __int64 v11; // rax void (__fastcall **v12)(__int64, __int16 *); // rax void (__fastcall **v13)(__int64, __int64); // rax __int64 v14; // rax float v15; // xmm8_4 struct cocos2d::CCActionInterval *v16; // rax struct cocos2d::CCFiniteTimeAction *v17; // rdi struct cocos2d::CCActionInterval *v18; // rax struct cocos2d::CCEaseInOut *v19; // rbx int v20; // eax struct cocos2d::CCDelayTime *v21; // rax struct cocos2d::CCActionInterval *v22; // rax struct cocos2d::CCAction *v23; // rax struct cocos2d::CCObject *v24; // r14 void (__fastcall **v25)(__int64, __int64); // rbx __int64 v26; // rax void (__fastcall **v27)(char *, _QWORD); // rbx _QWORD *v28; // rax struct cocos2d::CCActionInterval *v29; // rax struct cocos2d::CCFiniteTimeAction *v30; // rbx struct cocos2d::CCActionInterval *v31; // rax struct cocos2d::CCEaseInOut *v32; // rax struct cocos2d::CCActionInterval *v33; // rax struct cocos2d::CCAction *v34; // rax int v36[4]; // [rsp+20h] [rbp-98h] BYREF __int64 v37; // [rsp+C0h] [rbp+8h] BYREF __int16 v38; // [rsp+C8h] [rbp+10h] BYREF char v39; // [rsp+CAh] [rbp+12h] v8 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v8, v36); v9 = cocos2d::CCSprite::createWithSpriteFrameName("godray01_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v9 + 184LL))(v9, a7); v10 = *(_QWORD *)v9; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v10 + 288))(v9, v11); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 136LL))(v9); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 120LL))(v9); v38 = -14081; v12 = *((void (__fastcall ***)(__int64, __int16 *))v9 + 40); v39 = 0; (*v12)((__int64)v9 + 320, &v38); v13 = *((void (__fastcall ***)(__int64, __int64))v9 + 43); v37 = 0x100000302LL; (*v13)((__int64)v9 + 344, 0x100000302LL); v14 = *(_QWORD *)v9; *((_DWORD *)v9 + 141) = 1050253722; *((_DWORD *)v9 + 143) = 1050253722; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(v14 + 976))(v9); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 352LL))(v9); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v9 + 40) + 40LL))((__int64)v9 + 320, (unsigned int)(int)a2); (*((void (__fastcall **)(cocos2d::CCArray **, struct cocos2d::CCSprite *))*a1 + 58))(a1, v9); v15 = a5; v16 = cocos2d::CCFadeTo::create(a5, (int)a3); v17 = cocos2d::CCEaseInOut::create(v16, 2.0); v18 = cocos2d::CCFadeTo::create(v15, (int)a4); v19 = cocos2d::CCEaseInOut::create(v18, 2.0); v20 = rand(); v21 = cocos2d::CCDelayTime::create((float)v20 / 32767.0); v22 = cocos2d::CCSequence::create(v17, v19, v21, 0); v23 = cocos2d::CCRepeatForever::create(v22); cocos2d::CCNode::runAction(v9, v23); v24 = cocos2d::CCSprite::createWithSpriteFrameName("towerShine.png"); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v24 + 184LL))(v24, a7); (*((void (__fastcall **)(cocos2d::CCArray **, struct cocos2d::CCObject *, __int64))*a1 + 57))(a1, v24, 4); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v24 + 120LL))(v24); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v24 + 136LL))(v24); v25 = *((void (__fastcall ***)(__int64, __int64))v24 + 40); v26 = (*(__int64 (__fastcall **)(__int64))(*((_QWORD *)v9 + 40) + 8LL))((__int64)v9 + 320); (*v25)((__int64)v24 + 320, v26); v27 = *((void (__fastcall ***)(char *, _QWORD))v24 + 43); v28 = (_QWORD *)(*(__int64 (__fastcall **)(__int64, __int64 *))(*((_QWORD *)v9 + 43) + 8LL))((__int64)v9 + 344, &v37); (*v27)((char *)v24 + 344, *v28); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v24 + 40) + 40LL))( (__int64)v24 + 320, (unsigned int)(int)(float)(a2 * 0.89999998)); cocos2d::CCArray::addObject(a1[53], v24); v29 = cocos2d::CCFadeTo::create(v15, (int)(float)(a3 * 0.89999998)); v30 = cocos2d::CCEaseInOut::create(v29, 2.0); v31 = cocos2d::CCFadeTo::create(v15, (int)(float)(a4 * 0.89999998)); v32 = cocos2d::CCEaseInOut::create(v31, 2.0); v33 = cocos2d::CCSequence::create(v30, v32, 0); v34 = cocos2d::CCRepeatForever::create(v33); return cocos2d::CCNode::runAction(v24, v34); }
GD Web Decomp Icon

GD Web Decomp

Raw Source