// // LevelAreaInnerLayer::init from 0x1402c64e0 to 0x1402c74b9 (4057 bytes) // // 2 xrefs: // > LevelAreaInnerLayer::scene @ 0x1402c649a // > @ 0x1406d2b70 // // 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 // // Hidden C++ exception states: #wind=11 bool LevelAreaInnerLayer::init(LevelAreaInnerLayer *a1, bool a2) { float v2; // xmm3_4 LevelAreaInnerLayer *v3; // r14 bool result; // al _BOOL8 v5; // rdx _BOOL8 v6; // rdx __int64 v7; // rcx cocos2d::CCDirector *v8; // rax cocos2d::CCTextureCache *v9; // rax __int64 v10; // rcx cocos2d::CCSpriteFrameCache *v11; // rax CCLightFlash *v12; // rbx CCMenuItemSpriteExtra *v13; // rdi struct cocos2d::CCFadeIn *v14; // rax cocos2d::ccColor3B *v15; // r8 cocos2d::CCMenu_vtbl *v16; // rbx __int64 v17; // rcx cocos2d::CCDirector *v18; // rax __int64 v19; // rcx cocos2d::CCDirector *v20; // rax float v21; // xmm0_4 const cocos2d::CCPoint *v22; // rax __int64 v23; // rdx __int64 v24; // rcx __int64 v25; // rdx __int64 v26; // rcx CCLightFlash *v27; // r15 __int64 v28; // rcx struct cocos2d::CCSprite *v29; // rax float v30; // xmm0_4 CCLightFlash_vtbl *v31; // rbx const cocos2d::CCPoint *v32; // rax double v33; // xmm0_8 __int64 v34; // rax double v35; // xmm0_8 __int64 v36; // rax double v37; // xmm0_8 __int64 v38; // rax double v39; // xmm0_8 __int64 v40; // rax int v41; // edi int v42; // ebx GameLevelManager *v43; // rcx unsigned int v44; // r13d GJGameLevel *MainLevel; // rsi GameStatsManager *v46; // rcx bool hasCompletedMainLevel; // r12 GameStatsManager *v48; // rcx char v49; // bl float v50; // xmm0_4 unsigned __int64 v51; // rdi _BYTE *v52; // rbx unsigned __int64 v53; // rcx __int64 v54; // r14 char *v55; // rax _BYTE *v56; // rbx unsigned __int64 v57; // rcx __int64 v58; // r14 char *v59; // rbx void *v60; // rcx void **v61; // rcx struct cocos2d::CCSprite *v62; // rbx CCMenuItemSpriteExtra *v63; // rdi cocos2d::CCNode *v64; // r13 CCMenuItemSpriteExtra_vtbl *v65; // rbx cocos2d::CCPoint *v66; // r14 struct cocos2d::CCPoint v67; // rax int i; // edi GameStatsManager *v69; // rbx __int64 v70; // rdx cocos2d::CCString *v71; // rax const char *v72; // rcx const char *CString; // rax struct cocos2d::CCSprite *v74; // rbx __int16 *v75; // rdx double v76; // xmm0_8 struct cocos2d::CCSprite *v77; // rdi CCMenuItemSpriteExtra *v78; // rbx LevelAreaInnerLayer *v79; // r14 float v80; // xmm0_4 CCMenuItemSpriteExtra_vtbl *v81; // rbx double v82; // xmm0_8 struct cocos2d::CCPoint v83; // rax int j; // esi struct cocos2d::CCSprite *v85; // rdi cocos2d::CCSprite_vtbl *v86; // rbx int v87; // ecx __int64 v88; // rax float v89; // xmm0_4 __int64 v90; // rax struct cocos2d::CCScaleTo *v91; // rax struct cocos2d::CCEaseExponentialOut *v92; // rax cocos2d::ccColor3B *v93; // r8 CCLightFlash *v94; // rsi struct cocos2d::CCFadeTo *v95; // rbx struct cocos2d::CCDelayTime *v96; // rax struct cocos2d::CCSequence *v97; // rax cocos2d::ccColor3B *v98; // r8 CCMenuItemSpriteExtra *v99; // rdi cocos2d::CCNode *v100; // r12 CCMenuItemSpriteExtra_vtbl *v101; // rbx __int64 v102; // rcx cocos2d::CCDirector *v103; // rax float v104; // xmm0_4 struct cocos2d::CCPoint v105; // rax float v106; // xmm0_4 __int64 v107; // rax float v108; // xmm0_4 const struct cocos2d::CCPoint *v109; // rax struct cocos2d::CCMoveBy *v110; // rax struct cocos2d::CCEaseInOut *v111; // rbx const struct cocos2d::CCPoint *v112; // rax struct cocos2d::CCMoveBy *v113; // rax struct cocos2d::CCEaseInOut *v114; // rax struct cocos2d::CCSequence *v115; // rax struct cocos2d::CCRepeatForever *v116; // rax cocos2d::ccColor3B *v117; // r8 __int64 v118; // rbx struct cocos2d::CCDelayTime *v119; // rax struct cocos2d::CCSequence *v120; // rax cocos2d::ccColor3B *v121; // r8 CCLightFlash *v122; // rsi struct cocos2d::CCFadeTo *v123; // rbx struct cocos2d::CCDelayTime *v124; // rax struct cocos2d::CCSequence *v125; // rax cocos2d::ccColor3B *v126; // r8 CCMenuItemSpriteExtra *v127; // rdi CCMenuItemSpriteExtra_vtbl *v128; // rbx __int64 v129; // rcx cocos2d::CCDirector *v130; // rax __int64 v131; // rcx cocos2d::CCDirector *v132; // rax float v133; // xmm0_4 struct cocos2d::CCPoint v134; // rax GameManager *v135; // rcx __int64 v136; // rbx struct cocos2d::CCDelayTime *v137; // rax struct cocos2d::CCSequence *v138; // rax cocos2d::ccColor3B *v139; // r8 __int64 v140; // rax float v141; // [rsp+20h] [rbp-E0h] float v142; // [rsp+20h] [rbp-E0h] float v143; // [rsp+20h] [rbp-E0h] float v144; // [rsp+20h] [rbp-E0h] float v145; // [rsp+20h] [rbp-E0h] float v146; // [rsp+20h] [rbp-E0h] char v147; // [rsp+40h] [rbp-C0h] CCMenuItemSpriteExtra *v149; // [rsp+48h] [rbp-B8h] CCMenuItemSpriteExtra *v150; // [rsp+48h] [rbp-B8h] CCMenuItemSpriteExtra *v151; // [rsp+48h] [rbp-B8h] void *v152; // [rsp+48h] [rbp-B8h] cocos2d::CCPoint v153; // [rsp+50h] [rbp-B0h] BYREF __int16 v154; // [rsp+58h] [rbp-A8h] __int16 v155; // [rsp+5Ch] [rbp-A4h] BYREF char v156; // [rsp+5Eh] [rbp-A2h] __int16 v157; // [rsp+5Fh] [rbp-A1h] BYREF char v158; // [rsp+61h] [rbp-9Fh] __int16 v159; // [rsp+62h] [rbp-9Eh] __int16 v160; // [rsp+66h] [rbp-9Ah] BYREF char v161; // [rsp+68h] [rbp-98h] int v162; // [rsp+6Ch] [rbp-94h] int v163; // [rsp+70h] [rbp-90h] LevelAreaInnerLayer *v164; // [rsp+78h] [rbp-88h] struct cocos2d::CCPoint v165; // [rsp+80h] [rbp-80h] BYREF struct cocos2d::CCMenu *v166; // [rsp+88h] [rbp-78h] BYREF float v167; // [rsp+90h] [rbp-70h] __int64 v168; // [rsp+98h] [rbp-68h] char v169[8]; // [rsp+A0h] [rbp-60h] BYREF void *v170; // [rsp+A8h] [rbp-58h] void *v171; // [rsp+B8h] [rbp-48h] void *v172; // [rsp+C0h] [rbp-40h] void *v173; // [rsp+C8h] [rbp-38h] CCMenuItemSpriteExtra *v174; // [rsp+D0h] [rbp-30h] struct cocos2d::CCPoint v175; // [rsp+D8h] [rbp-28h] BYREF void *v176[2]; // [rsp+E0h] [rbp-20h] BYREF __int64 v177; // [rsp+F0h] [rbp-10h] unsigned __int64 v178; // [rsp+F8h] [rbp-8h] cocos2d::CCPoint v179; // [rsp+100h] [rbp+0h] BYREF cocos2d::CCPoint v180; // [rsp+108h] [rbp+8h] BYREF cocos2d::CCPoint v181; // [rsp+110h] [rbp+10h] BYREF cocos2d::CCPoint v182; // [rsp+118h] [rbp+18h] BYREF v3 = a1; v164 = a1; result = cocos2d::CCLayer::init(a1); if ( !result ) return result; LOBYTE(v5) = 1; v3->setKeypadEnabled(v3, v5); LOBYTE(v6) = 1; v3->setKeyboardEnabled(v3, v6); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(v8); v9 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage(v9, "TowerSheet.png", 0); v11 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v10); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(v11, "TowerSheet.plist"); v12 = (CCLightFlash *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); (*(void (__fastcall **)(cocos2d::CCArray **, _QWORD))&v12->m_lightStripArray->m_unknown2)(&v12->m_lightStripArray, 0); v13 = CCMenuItemSpriteExtra::create(v12, nullptr, v3, (cocos2d::SEL_MenuHandler *)LevelAreaInnerLayer::onBack); HIDWORD(v13->m_pfnSelector.adj) = 1070386381; v14 = cocos2d::CCFadeIn::create(0.30000001); cocos2d::CCNode::runAction(v12, (cocos2d::CCPoint)v14, v15, v2, v141); v166 = cocos2d::CCMenu::create(v13, 0); v3->addChild_0(v3, v166, 1); v16 = v166->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v17); cocos2d::CCDirector::getScreenTop(v18); v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v19); v21 = cocos2d::CCDirector::getScreenLeft(v20) + 24.0; cocos2d::CCPoint::CCPoint(v21, v21); v16->setPosition_0(v166, v22); if ( *(_BYTE *)(cocos2d::CCApplication::sharedApplication(v24, v23) + 197) ) GameToolbox::addBackButton(v3, v13); v27 = (CCLightFlash *)cocos2d::CCNode::create(v26, v25); v3->addChild_1(v3, v27); v168 = cocos2d::CCMenu::create(v28); v29 = cocos2d::CCSprite::createWithSpriteFrameName("towerBG_01_001.png"); v30 = ((float (__fastcall *)(CCLightFlash *, struct cocos2d::CCSprite *, __int64))v27->addChild_0)(v27, v29, 1); v31 = v27->__vftable; cocos2d::CCPoint::CCPoint(v30, v167 * 0.5); v31->setPosition_0(v27, v32); cocos2d::CCPoint::CCPoint(&v179); cocos2d::CCPoint::CCPoint(&v180); cocos2d::CCPoint::CCPoint(&v181); v33 = cocos2d::CCPoint::CCPoint(&v182); cocos2d::CCPoint::CCPoint(*(float *)&v33, -95.5); v35 = cocos2d::CCPoint::operator=(&v179, v34); cocos2d::CCPoint::CCPoint(*(float *)&v35, 103.75); v37 = cocos2d::CCPoint::operator=(&v180, v36); cocos2d::CCPoint::CCPoint(*(float *)&v37, -95.5); v39 = cocos2d::CCPoint::operator=(&v181, v38); cocos2d::CCPoint::CCPoint(*(float *)&v39, 57.5); cocos2d::CCPoint::operator=(&v182, v40); v41 = 0; v163 = 0; v42 = 0; v162 = 0; while ( 1 ) { v43 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v171 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v171); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v43 = (GameLevelManager *)qword_1406C2EC0; } v44 = v42 + 5001; MainLevel = GameLevelManager::getMainLevel(v43, v42 + 5001, 1); v46 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v172 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0((__int64)v172); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v46 = (GameStatsManager *)qword_1406C2EE8; } hasCompletedMainLevel = GameStatsManager::hasCompletedMainLevel(v46, v44); if ( !v42 ) goto LABEL_14; v48 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v173 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0((__int64)v173); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v48 = (GameStatsManager *)qword_1406C2EE8; } if ( GameStatsManager::hasCompletedMainLevel(v48, v42 + 5000) ) LABEL_14: v49 = 1; else v49 = 0; v147 = v49; if ( hasCompletedMainLevel ) v163 = v41 + 1; *(_OWORD *)v176 = 0; v177 = 0; v178 = 15; v176[0] = sub_14003AA10(0x20u); v177 = 24; v178 = 31; strcpy((char *)v176[0], "towerDoor_locked_001.png"); v50 = 0.0000000025638867; if ( hasCompletedMainLevel ) { v51 = v178; if ( v178 >= 0x16 ) { v52 = v176[0]; v177 = 22; memmove(v176[0], "towerDoor_open_001.png", 0x16u); v52[22] = 0; goto LABEL_38; } v53 = v178 >> 1; if ( v178 <= 0x7FFFFFFFFFFFFFFFLL - (v178 >> 1) ) { v54 = 31; if ( v178 + v53 > 0x1F ) v54 = v178 + v53; } else { v54 = 0x7FFFFFFFFFFFFFFFLL; } v55 = (char *)sub_14003AA10(v54 + 1); v177 = 22; v178 = v54; v50 = *(float *)"towerDoor_open_001.png"; strcpy(v55, "towerDoor_open_001.png"); } else { if ( !v49 ) goto LABEL_38; v51 = v178; if ( v178 >= 0x1A ) { v56 = v176[0]; v177 = 26; memmove(v176[0], "towerDoor_unlocked_001.png", 0x1Au); v56[26] = 0; goto LABEL_38; } v57 = v178 >> 1; if ( v178 <= 0x7FFFFFFFFFFFFFFFLL - (v178 >> 1) ) { v58 = 31; if ( v178 + v57 > 0x1F ) v58 = v178 + v57; } else { v58 = 0x7FFFFFFFFFFFFFFFLL; } v55 = (char *)sub_14003AA10(v58 + 1); v177 = 26; v178 = v58; strcpy(v55, "towerDoor_unlocked_001.png"); v50 = *(float *)"ed_001.png"; } v59 = v55; if ( v51 > 0xF ) { v60 = v176[0]; if ( v51 + 1 >= 0x1000 ) { v60 = *((void **)v176[0] - 1); if ( (unsigned __int64)((char *)v176[0] - (char *)v60 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v60); } v3 = v164; v176[0] = v59; LABEL_38: v61 = v176; if ( v178 > 0xF ) v61 = (void **)v176[0]; v62 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v61); v174 = (CCMenuItemSpriteExtra *)operator new(0x208u); v63 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v174); if ( !v63 ) goto LABEL_44; if ( !CCMenuItemSpriteExtra::init(v63, v62, nullptr, v3, (cocos2d::SEL_MenuHandler *)LevelAreaInnerLayer::onDoor) ) { ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v63->~CCMenuItemSpriteExtra)(v63, 1); LABEL_44: v63 = nullptr; goto LABEL_45; } cocos2d::CCObject::autorelease(v63); LABEL_45: LOWORD(v63->m_scaleMultiplier) = 256; v63->setTag(v63, v44); v64 = (cocos2d::CCNode *)v168; (*(void (__fastcall **)(__int64, CCMenuItemSpriteExtra *))(*(_QWORD *)v168 + 448LL))(v168, v63); if ( !hasCompletedMainLevel && !v147 ) { v154 = -6703; v155 = -6703; v156 = -1; v62->setColor(&v62->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v155); v63->setEnabled(v63, 0); } v65 = v63->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v66 = &v179 + v162; v67 = cocos2d::CCNode::convertToNodeSpace(v64, &v175); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v65->setPosition_0)(v63, v67); if ( hasCompletedMainLevel ) { cocos2d::CCPoint::CCPoint(v50, 0.0); cocos2d::CCPoint::operator+(v66, v169); for ( i = 1; i <= 3; ++i ) { v69 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v165 = (struct cocos2d::CCPoint)operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(*(_QWORD *)&v165); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v69 = (GameStatsManager *)qword_1406C2EE8; } v70 = (unsigned int)(MainLevel->m_levelID.random - MainLevel->m_levelID.seed); if ( MainLevel->m_dailyID.random - MainLevel->m_dailyID.seed <= 0 ) { v72 = "%i_%i_g"; if ( !MainLevel->m_gauntletLevel ) v72 = "%i_%i"; v71 = cocos2d::CCString::createWithFormat(v72, v70, (unsigned int)i); } else { v71 = cocos2d::CCString::createWithFormat( "%i_%i_%i", v70, i, MainLevel->m_dailyID.random - MainLevel->m_dailyID.seed); } CString = cocos2d::CCString::getCString(v71); if ( GameStatsManager::hasSecretCoin(v69, CString) ) { v74 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png"); v157 = -1; v158 = -1; v75 = &v157; } else { v74 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_gray_001.png"); v159 = -7711; v160 = -7711; v161 = -31; v75 = &v160; } v76 = ((double (__fastcall *)(cocos2d::CCRGBAProtocol *, __int16 *))v74->setColor)( &v74->cocos2d::CCRGBAProtocol, v75); ((void (__fastcall *)(struct cocos2d::CCSprite *))v74->setScale_0)(v74); v27->addChild_0(v27, v74, 10); cocos2d::CCPoint::CCPoint(*(float *)&v76, (float)(i - 2) * 20.0); cocos2d::CCPoint::operator+(v169, &v153); v74->setPosition_0(v74, &v153); } v64 = (cocos2d::CCNode *)v168; } sub_14003A830((__int64)v176); v42 = v162 + 1; v162 = v42; if ( v42 >= 4 ) break; v3 = v164; v41 = v163; } v77 = cocos2d::CCSprite::createWithSpriteFrameName("towerLockedArrow_001.png"); v149 = (CCMenuItemSpriteExtra *)operator new(0x208u); v78 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v149); v79 = v164; if ( !v78 ) { LABEL_69: v78 = nullptr; goto LABEL_70; } if ( !CCMenuItemSpriteExtra::init( v78, v77, nullptr, v164, (cocos2d::SEL_MenuHandler *)LevelAreaInnerLayer::onNextFloor) ) { ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v78->~CCMenuItemSpriteExtra)(v78, 1); goto LABEL_69; } cocos2d::CCObject::autorelease(v78); LABEL_70: v79->m_nextFloorButton = v78; v80 = ((float (__fastcall *)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))v64->addChild_1)(v64, v78); v81 = v79->m_nextFloorButton->__vftable; v82 = cocos2d::CCPoint::CCPoint(v80, -96.0); v83 = cocos2d::CCNode::convertToNodeSpace(v64, &v165); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v81->setPosition_0)( v79->m_nextFloorButton, v83); v27->addChild_0(v27, v64, 2); for ( j = 0; j < 2; ++j ) { v85 = cocos2d::CCSprite::createWithSpriteFrameName("towerTorchInner_001.png"); v27->addChild_0(v27, v85, 4); v86 = v85->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v87 = 195; if ( !j ) v87 = -195; cocos2d::CCPoint::CCPoint(*(float *)&v82, (float)v87); v89 = ((float (__fastcall *)(struct cocos2d::CCSprite *, __int64))v86->setPosition_0)(v85, v88); cocos2d::CCPoint::CCPoint(v89, 0.0); v90 = (__int64)v85->getPosition_0(v85); v82 = cocos2d::CCPoint::operator+(v90, &v153); LevelAreaLayer::addTorch(v27, (cocos2d::CCPoint)&v153, 2, 1.0, 4, 1, 0, nullptr); } if ( !a2 ) { ((void (__fastcall *)(CCLightFlash *))v27->setScale_0)(v27); v91 = cocos2d::CCScaleTo::create(1.0, 1.0); v92 = cocos2d::CCEaseExponentialOut::create(v91); cocos2d::CCNode::runAction(v27, (cocos2d::CCPoint)v92, v93, 1.0, v142); } v94 = (CCLightFlash *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_secretLock4_small_001.png"); (*(void (__fastcall **)(cocos2d::CCArray **, _QWORD))&v94->m_lightStripArray->m_unknown2)(&v94->m_lightStripArray, 0); v95 = cocos2d::CCFadeTo::create(2.0, 0xC8u); v96 = cocos2d::CCDelayTime::create(0.5); v97 = cocos2d::CCSequence::create(v96, v95, 0); cocos2d::CCNode::runAction(v94, (cocos2d::CCPoint)v97, v98, 1.0, v142); v150 = (CCMenuItemSpriteExtra *)operator new(0x208u); v99 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v150); if ( v99 ) { if ( CCMenuItemSpriteExtra::init( v99, v94, nullptr, v79, (cocos2d::SEL_MenuHandler *)LevelAreaInnerLayer::onOnlineVault) ) { cocos2d::CCObject::autorelease(v99); goto LABEL_81; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v99->~CCMenuItemSpriteExtra)(v99, 1); } v99 = nullptr; LABEL_81: v100 = v166; v166->addChild_1(v166, v99); v101 = v99->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v103 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v102); v104 = cocos2d::CCDirector::getScreenRight(v103) - 22.0; cocos2d::CCPoint::CCPoint(v104, v104); v105 = cocos2d::CCNode::convertToNodeSpace(v100, &v165); v106 = ((float (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v101->setPosition_0)(v99, v105); cocos2d::CCPoint::CCPoint(v106, 0.0); v107 = (__int64)v27->getPosition_0(v27); cocos2d::CCPoint::operator+(v107, &v166); v108 = ((float (__fastcall *)(CCLightFlash *, struct cocos2d::CCMenu **))v27->setPosition_0)(v27, &v166); cocos2d::CCPoint::CCPoint(v108, 0.0); v110 = cocos2d::CCMoveBy::create(2.0, v109); v111 = cocos2d::CCEaseInOut::create(v110, 2.0); cocos2d::CCPoint::CCPoint(2.0, 0.0); v113 = cocos2d::CCMoveBy::create(2.0, v112); v114 = cocos2d::CCEaseInOut::create(v113, 2.0); v115 = cocos2d::CCSequence::create(v111, v114, 0); v116 = cocos2d::CCRepeatForever::create(v115); cocos2d::CCNode::runAction(v27, (cocos2d::CCPoint)v116, v117, 1.0, v143); v118 = cocos2d::CCCallFunc::create(v79, LevelAreaInnerLayer::tryResumeTowerMusic); v119 = cocos2d::CCDelayTime::create(0.0); v120 = cocos2d::CCSequence::create(v119, v118, 0); cocos2d::CCNode::runAction((CCLightFlash *)v79, (cocos2d::CCPoint)v120, v121, 1.0, v144); *(_OWORD *)v176 = 0; v177 = 0; v178 = 15; v176[0] = sub_14003AA10(0x20u); v177 = 19; v178 = 31; strcpy((char *)v176[0], "GJ_infoIcon_001.png"); v122 = (CCLightFlash *)CCSpriteGrayscale::createWithSpriteFrameName((__int64)v176); sub_14003A830((__int64)v176); (*(void (__fastcall **)(cocos2d::CCArray **, _QWORD))&v122->m_lightStripArray->m_unknown2)( &v122->m_lightStripArray, 0); ((void (__fastcall *)(CCLightFlash *))v122->setScale_0)(v122); v123 = cocos2d::CCFadeTo::create(1.0, 0xC8u); v124 = cocos2d::CCDelayTime::create(0.1); v125 = cocos2d::CCSequence::create(v124, v123, 0); cocos2d::CCNode::runAction(v122, (cocos2d::CCPoint)v125, v126, 1.0, v145); v151 = (CCMenuItemSpriteExtra *)operator new(0x208u); v127 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v151); if ( v127 ) { if ( CCMenuItemSpriteExtra::init(v127, v122, nullptr, v79, (cocos2d::SEL_MenuHandler *)LevelAreaInnerLayer::onInfo) ) { cocos2d::CCObject::autorelease(v127); goto LABEL_86; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v127->~CCMenuItemSpriteExtra)(v127, 1); } v127 = nullptr; LABEL_86: v100->addChild_1(v100, v127); v128 = v127->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v130 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v129); cocos2d::CCDirector::getScreenTop(v130); v132 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v131); v133 = cocos2d::CCDirector::getScreenRight(v132) - 20.0; cocos2d::CCPoint::CCPoint(v133, v133); v134 = cocos2d::CCNode::convertToNodeSpace(v100, &v165); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v128->setPosition_0)(v127, v134); if ( v163 == 4 ) { v135 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v170 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v170); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v135 = (GameManager *)qword_1406C2ED8; } if ( !GameManager::getUGV(v135, "33") ) { v79->m_enteringLevel = 1; v136 = cocos2d::CCCallFunc::create(v79, LevelAreaInnerLayer::showFloor1CompleteDialog); v137 = cocos2d::CCDelayTime::create(1.0); v138 = cocos2d::CCSequence::create(v137, v136, 0); cocos2d::CCNode::runAction((CCLightFlash *)v79, (cocos2d::CCPoint)v138, v139, 1.0, v146); goto LABEL_92; } } else if ( v163 < 4 ) { LABEL_92: v79->m_nextFloorButton->setEnabled(v79->m_nextFloorButton, 0); v79->m_nextFloorButton->setVisible(v79->m_nextFloorButton, 0); } if ( !v79->m_enteringLevel ) { v140 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v152 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v152); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v140 = qword_1406C2ED8; } *(_BYTE *)(v140 + 1036) = 0; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source