// // LevelAreaLayer::addGodRay from 0x100264e80 to 0x1002651aa (810 bytes) // // 6 xrefs: // > LevelAreaLayer::init @ 0x1002647af // > LevelAreaLayer::init @ 0x1002647fe // > LevelAreaLayer::init @ 0x10026484d // > LevelAreaLayer::init @ 0x10026489c // > LevelAreaLayer::init @ 0x1002648eb // > LevelAreaLayer::init @ 0x10026493a // // 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 12:27:33 +0000 // __int64 __fastcall LevelAreaLayer::addGodRay(__int64 a1, __int64 a2, float a3, float a4, float a5, float a6, float a7) { __int64 v7; // rbx __int64 v8; // rax __int64 v9; // r14 __int64 v10; // rax int v11; // r12d __int64 v12; // rax int v13; // r13d int v14; // eax int v15; // eax int v16; // r8d int v17; // r9d __int64 v18; // rax __int64 v19; // rax __int64 v20; // r12 __int64 v21; // rax __int64 v22; // rax __int64 v23; // rax __int64 v24; // rax int v25; // eax int v26; // ecx int v27; // r8d int v28; // r9d __int64 v29; // rax __int64 v30; // rax float v32[2]; // [rsp+4h] [rbp-4Ch] BYREF __int16 v33; // [rsp+Ch] [rbp-44h] BYREF char v34; // [rsp+Eh] [rbp-42h] float v35; // [rsp+14h] [rbp-3Ch] float v36; // [rsp+18h] [rbp-38h] float v37; // [rsp+1Ch] [rbp-34h] float v38; // [rsp+20h] [rbp-30h] float v39; // [rsp+24h] [rbp-2Ch] v35 = a7; v39 = a6; v36 = a5; v37 = a4; v38 = a3; v7 = a1; v8 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(v32, v8); v9 = cocos2d::CCSprite::createWithSpriteFrameName("godray01_001.png"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 184LL))(v9, a2); sub_100278250(&v33, 1.0, 0.5); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v9 + 296LL))(v9, &v33); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 144LL))(v9, v35); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 128LL))( v9, (float)((float)(0.5 * v32[0]) * 1.5) / *(float *)(v9 + 432)); v34 = 0; v33 = -14081; (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v9 + 960LL))(v9, &v33); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 1080LL))(v9, 0x100000302LL); *(_DWORD *)(v9 + 564) = 1050253722; *(_DWORD *)(v9 + 572) = 1050253722; (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1128LL))(v9); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 360LL))(v9, 30.0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 912LL))(v9, (unsigned __int8)(int)v38); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 456LL))(v7, v9); v10 = cocos2d::CCFadeTo::create((unsigned __int8)(int)v37, v39); v11 = cocos2d::CCEaseInOut::create(v10, 2.0); v12 = cocos2d::CCFadeTo::create((unsigned __int8)(int)v36, v39); v13 = cocos2d::CCEaseInOut::create(v12, 2.0); v14 = rand(); v15 = cocos2d::CCDelayTime::create((float)v14 * 4.6566129e-10); v18 = sub_10039EB60(v11, v13, v15, 0, v16, v17); v19 = cocos2d::CCRepeatForever::create(v18); cocos2d::CCNode::runAction(v9, v19); v20 = cocos2d::CCSprite::createWithSpriteFrameName("towerShine.png"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 184LL))(v20, a2); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v7 + 464LL))(v7, v20, 4); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 128LL))(v20, 1.2); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 144LL))(v20, 1.4400001); v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 944LL))(v9); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 960LL))(v20, v21); v22 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 1088LL))(v9); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v20 + 1080LL))(v20, v22); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 912LL))( v20, (unsigned __int8)(int)(float)(v38 * 0.89999998)); sub_1007FEBF0(*(_QWORD *)(a1 + 424), v20); v23 = cocos2d::CCFadeTo::create((unsigned __int8)(int)(float)(v37 * 0.89999998), v39); LODWORD(v7) = cocos2d::CCEaseInOut::create(v23, 2.0); v24 = cocos2d::CCFadeTo::create((unsigned __int8)(int)(float)(v36 * 0.89999998), v39); v25 = cocos2d::CCEaseInOut::create(v24, 2.0); v29 = sub_10039EB60(v7, v25, 0, v26, v27, v28); v30 = cocos2d::CCRepeatForever::create(v29); return cocos2d::CCNode::runAction(v20, v30); }
GD Web Decomp Icon

GD Web Decomp

Raw Source