// // LevelAreaLayer::addGodRay from 0x100344864 to 0x100344b74 (784 bytes) // // 6 xrefs: // > LevelAreaLayer::init @ 0x100344334 // > LevelAreaLayer::init @ 0x100344374 // > LevelAreaLayer::init @ 0x1003443b4 // > LevelAreaLayer::init @ 0x100344404 // > LevelAreaLayer::init @ 0x100344444 // > LevelAreaLayer::init @ 0x100344484 // // 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 LevelAreaLayer::addGodRay( LevelAreaLayer *a1, float a2, float a3, float a4, float a5, float a6, cocos2d::CCPoint a7) { __int64 v7; // x1 __int64 v8; // x21 cocos2d::CCDirector *v15; // x0 cocos2d::CCSprite *v16; // x20 __n128 v17; // q0 __n128 v18; // q1 cocos2d::CCFadeTo *v19; // x0 cocos2d::CCEaseInOut *v20; // x22 cocos2d::CCFadeTo *v21; // x0 char v22; // w23 unsigned int v23; // w0 __int64 v24; // x1 __int64 v25; // x2 __int64 v26; // x3 __int64 v27; // x4 __int64 v28; // x5 __int64 v29; // x6 __int64 v30; // x7 cocos2d::CCSequence *v31; // x0 cocos2d::CCRepeatForever *v32; // x0 cocos2d::CCSprite *v33; // x22 __int64 v34; // x0 __int64 v35; // x0 cocos2d::CCFadeTo *v36; // x0 cocos2d::CCEaseInOut *v37; // x19 cocos2d::CCFadeTo *v38; // x0 char v39; // w0 __int64 v40; // x1 __int64 v41; // x2 __int64 v42; // x3 __int64 v43; // x4 __int64 v44; // x5 __int64 v45; // x6 __int64 v46; // x7 cocos2d::CCSequence *v47; // x0 cocos2d::CCRepeatForever *v48; // x0 _DWORD v49[4]; // [xsp+20h] [xbp-70h] BYREF v8 = v7; v15 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v15); v16 = cocos2d::CCSprite::createWithSpriteFrameName("godray01_001.png"); v17 = ((__n128 (__fastcall *)(cocos2d::CCSprite *, __int64))v16->setPosition)(v16, v8); v17.n128_u32[0] = 1.0; v18.n128_u32[0] = 0.5; sub_100022980(v17, v18, v49); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v16->setAnchorPoint)(v16, v49); ((void (__fastcall *)(cocos2d::CCSprite *, float))v16->setScaleY)(v16, a6); ((void (__fastcall *)(cocos2d::CCSprite *, float))v16->setScaleX)( v16, (float)((float)(*(float *)&v49[2] * 0.5) * 1.5) / v16->m_obRect.size.width); BYTE2(v49[0]) = 0; LOWORD(v49[0]) = -14081; ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD *))v16->setColor)(v16, v49); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v16->setBlendFunc)(v16, 0x100000302LL); v16->m_fTlVertexMod = 0.3; v16->m_fBlVertexMod = 0.3; ((void (__fastcall *)(cocos2d::CCSprite *))v16->refreshTextureRect)(v16); ((void (__fastcall *)(cocos2d::CCSprite *, float))v16->setRotation)(v16, 30.0); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v16->setOpacity)(v16, (unsigned int)(int)a2); ((void (__fastcall *)(LevelAreaLayer *, cocos2d::CCSprite *))a1->addChild)(a1, v16); v19 = cocos2d::CCFadeTo::create(a5, (int)a3); v20 = cocos2d::CCEaseInOut::create(v19, 2.0); v21 = cocos2d::CCFadeTo::create(a5, (int)a4); v22 = (unsigned __int8)cocos2d::CCEaseInOut::create(v21, 2.0); v23 = rand(); cocos2d::CCDelayTime::create(vcvts_n_f32_s32(v23, 0x1Fu)); v31 = sub_10018A494(v20, v24, v25, v26, v27, v28, v29, v30, v22); v32 = cocos2d::CCRepeatForever::create(v31); cocos2d::CCNode::runAction(v16, v32); v33 = cocos2d::CCSprite::createWithSpriteFrameName("towerShine.png"); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v33->setPosition)(v33, v8); ((void (__fastcall *)(LevelAreaLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v33, 4); ((void (__fastcall *)(cocos2d::CCSprite *, float))v33->setScaleX)(v33, 1.2); ((void (__fastcall *)(cocos2d::CCSprite *, float))v33->setScaleY)(v33, 1.44); v34 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v16->getColor)(v16); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v33->setColor)(v33, v34); v35 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v16->getBlendFunc)(v16); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v33->setBlendFunc)(v33, v35); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v33->setOpacity)(v33, (unsigned int)(int)(float)(a2 * 0.9)); sub_10024A2D0((__int64)a1->m_godRays); v36 = cocos2d::CCFadeTo::create(a5, (int)(float)(a3 * 0.9)); v37 = cocos2d::CCEaseInOut::create(v36, 2.0); v38 = cocos2d::CCFadeTo::create(a5, (int)(float)(a4 * 0.9)); v39 = (unsigned __int8)cocos2d::CCEaseInOut::create(v38, 2.0); v47 = sub_10018A494(v37, v40, v41, v42, v43, v44, v45, v46, v39); v48 = cocos2d::CCRepeatForever::create(v47); cocos2d::CCNode::runAction(v33, v48); }
GD Web Decomp Icon

GD Web Decomp

Raw Source