// // LevelPage::updateDynamicPage from 0x79f01c to 0x7a0124 (4360 bytes) // // 2 xrefs: // > LevelSelectLayer::updatePageWithObject @ 0x7a0168 // > @ 0xadca0 // // 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 LevelPage::updateDynamicPage(LevelPage *a1, GJGameLevel *a2) { GJGameLevel *m_level; // x0 unsigned int i; // w20 unsigned int v6; // w1 __int64 v7; // x0 bool v8; // cf cocos2d::CCArray *m_dynamicObjects; // x0 unsigned int v10; // w20 cocos2d::CCDirector *v11; // x0 int v12; // w0 unsigned int v13; // w1 __int64 v14; // x0 unsigned int j; // w20 unsigned int v16; // w1 __int64 v17; // x0 float m_progressWidth; // s9 float v19; // s2 cocos2d::CCSprite *m_normalProgressBar; // x20 void (__fastcall *setTextureRect)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // x23 float v22; // s0 float v23; // s2 cocos2d::CCSprite *m_practiceProgressBar; // x20 void (__fastcall *v25)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // x23 unsigned int NormalPercent; // w0 cocos2d::CCString *v27; // x0 const unsigned __int8 *CString; // x0 cocos2d::CCString *v29; // x0 const unsigned __int8 *v30; // x0 GameStatsManager *v31; // x0 int Stat; // w26 int m_requiredCoins; // w27 cocos2d::CCLabelBMFont *m_nameLabel; // x20 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x23 long double v36; // q0 void *v37; // x0 float width; // s0 cocos2d::CCLabelBMFont *v39; // x20 void (__fastcall *v40)(cocos2d::CCLabelBMFont *__hidden, float); // x23 GJDifficulty m_difficulty; // w0 cocos2d::CCString *v42; // x0 const char *v43; // x0 cocos2d::CCSprite *m_difficultySprite; // x20 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x23 cocos2d::CCSpriteFrameCache *v46; // x0 cocos2d::CCSpriteFrame *v47; // x0 cocos2d::CCSprite *v48; // x0 float v49; // s10 float v50; // s10 float v51; // s8 float v52; // s0 cocos2d::CCSprite *v53; // x20 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCLabelBMFont *v55; // x20 void (__fastcall *v56)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 const cocos2d::CCPoint *v57; // x0 cocos2d::CCLabelBMFont *m_starsLabel; // x20 void (__fastcall *v59)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x23 cocos2d::CCString *v60; // x0 const char *v61; // x0 GameStatsManager *v62; // x0 cocos2d::CCLabelBMFont *v63; // x0 void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x3 __int64 k; // x20 GameStatsManager *v66; // x25 const char *CoinKey; // x0 __int64 v68; // x25 void (__fastcall *v69)(__int64, cocos2d::CCSpriteFrame *); // x28 cocos2d::CCSpriteFrameCache *v70; // x0 cocos2d::CCSpriteFrame *v71; // x0 void (__fastcall *v72)(__int64, cocos2d::CCRect *); // x3 unsigned int v73; // w20 unsigned int v74; // w1 __int64 v75; // x0 cocos2d::CCSprite *v76; // x23 void (__fastcall *v77)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x20 cocos2d::CCSprite *v78; // x20 void (__fastcall *v79)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCString *v80; // x0 cocos2d::CCLabelBMFont *v81; // x26 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x25 void (__fastcall *v83)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 __int64 v84; // x27 GameObject *m_coinObject; // x1 float v86; // s9 void (__fastcall *v87)(__int64, cocos2d::CCSpriteFrame *); // x28 cocos2d::CCSpriteFrameCache *v88; // x0 cocos2d::CCSpriteFrame *v89; // x0 unsigned int v90; // w20 unsigned int v91; // w1 __int64 v92; // x0 cocos2d::CCLabelBMFont *v93; // x20 void (__fastcall *v94)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 unsigned int v95; // w1 __int64 v96; // x0 cocos2d::CCSprite *v97; // x20 CCMenuItemSpriteExtra *v98; // x0 cocos2d::CCMenu *v99; // x24 void (__fastcall *v100)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 cocos2d::CCSprite *v101; // x24 void (__fastcall *v102)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x25 __int64 v103; // x0 cocos2d::CCMoveBy *v104; // x0 cocos2d::CCEaseInOut *v105; // x24 cocos2d::CCMoveBy *v106; // x0 cocos2d::CCEaseInOut *v107; // x0 cocos2d::CCActionInterval *v108; // x0 cocos2d::CCRepeatForever *v109; // x0 cocos2d::CCParticleSystemQuad *v110; // x23 void (__fastcall *v111)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 float v112; // s8 __int64 v113; // x0 cocos2d::CCParticleSystemQuad *v114; // x24 void (__fastcall *v115)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x25 float v116; // s8 __int64 v117; // x0 cocos2d::CCParticleSystemQuad *v118; // x25 void (__fastcall *v119)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x26 float v120; // s8 __int64 v121; // x0 int v122; // w20 void *v123; // x0 void *v124; // x0 void *v125; // x0 unsigned int *v126; // x1 int v127; // w2 cocos2d::CCLabelBMFont *v128; // x20 void (__fastcall *setScale)(cocos2d::CCLabelBMFont *__hidden, float); // x23 float *v130; // x0 GameStatsManager *v131; // x0 int BaseCurrencyForLevel; // w20 GameStatsManager *v133; // x0 unsigned int AwardedCurrencyForLevel; // w24 cocos2d::CCSprite *v135; // x23 cocos2d::CCString *v136; // x0 cocos2d::CCLabelBMFont *v137; // x20 void (__fastcall *v138)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // x24 void (__fastcall *v139)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24 void (__fastcall *v140)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 float x; // s10 float v142; // s8 __int64 v143; // x0 unsigned int *v144; // x2 int v145; // w1 unsigned int *v146; // x1 int v147; // w2 unsigned int *v148; // x1 int v149; // w2 const char *v150; // [xsp+A0h] [xbp+A0h] float v151; // [xsp+A0h] [xbp+A0h] float v152; // [xsp+A0h] [xbp+A0h] float v153; // [xsp+B8h] [xbp+B8h] float v154; // [xsp+BCh] [xbp+BCh] __int64 v155; // [xsp+C0h] [xbp+C0h] BYREF __int64 v156; // [xsp+C8h] [xbp+C8h] BYREF cocos2d::CCPoint v157; // [xsp+D0h] [xbp+D0h] BYREF cocos2d::CCRect v158; // [xsp+D8h] [xbp+D8h] BYREF cocos2d::SEL_MenuHandler v159; // 0:x2.16 if ( !a1->m_isBusy ) { m_level = a1->m_level; if ( m_level ) { if ( a2->m_levelID.random - a2->m_levelID.seed == m_level->m_levelID.random - m_level->m_levelID.seed ) return; cocos2d::CCObject::release(m_level); a1->m_level = nullptr; } for ( i = 0; ; ++i ) { v8 = i >= (unsigned int)cocos2d::CCArray::count(a1->m_dynamicObjects); m_dynamicObjects = a1->m_dynamicObjects; if ( v8 ) break; v6 = i; v7 = cocos2d::CCArray::objectAtIndex(m_dynamicObjects, v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 504LL))(v7); } cocos2d::CCArray::removeAllObjects(m_dynamicObjects); a1->m_secretDoor = nullptr; a1->m_level = a2; v10 = 0; cocos2d::CCObject::retain(a2); v11 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v11); v12 = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed; if ( v12 > 0 ) { while ( v10 < (unsigned int)cocos2d::CCArray::count(a1->m_progressObjects) ) { v13 = v10++; v14 = cocos2d::CCArray::objectAtIndex(a1->m_progressObjects, v13); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 328LL))(v14, 1); } for ( j = 0; j < (unsigned int)cocos2d::CCArray::count(a1->m_levelObjects); ++j ) { v16 = j; v17 = cocos2d::CCArray::objectAtIndex(a1->m_levelObjects, v16); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 328LL))(v17, 1); } m_progressWidth = a1->m_progressWidth; if ( m_progressWidth > (float)(m_progressWidth * (float)((float)GJGameLevel::getNormalPercent(a1->m_level) / 100.0)) ) { v86 = a1->m_progressWidth; v19 = v86 * (float)((float)GJGameLevel::getNormalPercent(a1->m_level) / 100.0); } else { v19 = a1->m_progressWidth; } m_normalProgressBar = a1->m_normalProgressBar; setTextureRect = m_normalProgressBar->setTextureRect; cocos2d::CCRect::CCRect(&v158, 0.0, 0.0, v19, m_normalProgressBar->m_obRect.size.height); setTextureRect(m_normalProgressBar, &v158); v22 = a1->m_progressWidth; v23 = v22 * (float)((float)a1->m_level->m_practicePercent / 100.0); if ( v22 <= v23 ) v23 = a1->m_progressWidth; m_practiceProgressBar = a1->m_practiceProgressBar; v25 = m_practiceProgressBar->setTextureRect; cocos2d::CCRect::CCRect(&v158, 0.0, 0.0, v23, m_practiceProgressBar->m_obRect.size.height); v25(m_practiceProgressBar, &v158); NormalPercent = GJGameLevel::getNormalPercent(a1->m_level); v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", (const char *)NormalPercent); CString = (const unsigned __int8 *)cocos2d::CCString::getCString(v27); a1->m_normalProgressLabel->setString(a1->m_normalProgressLabel, CString); v29 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", (const char *)(unsigned int)a1->m_level->m_practicePercent); v30 = (const unsigned __int8 *)cocos2d::CCString::getCString(v29); a1->m_practiceProgressLabel->setString(a1->m_practiceProgressLabel, v30); v31 = GameStatsManager::sharedState(); Stat = GameStatsManager::getStat(v31, "8"); m_requiredCoins = a1->m_level->m_requiredCoins; a1->m_nameLabel->setScale(a1->m_nameLabel, 1.0); m_nameLabel = a1->m_nameLabel; setString = m_nameLabel->setString; *(__n128 *)&v36 = sub_D18D28(&v158); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD, long double))setString)( m_nameLabel, *(_QWORD *)&v158.origin, v36); v37 = (void *)(*(_QWORD *)&v158.origin - 24LL); if ( (__int64 *)(*(_QWORD *)&v158.origin - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v144 = (unsigned int *)(*(_QWORD *)&v158.origin - 8LL); do v145 = __ldaxr(v144); while ( __stlxr(v145 - 1, v144) ); } else { v145 = *(_DWORD *)(*(_QWORD *)&v158.origin - 8LL); *(_DWORD *)(*(_QWORD *)&v158.origin - 8LL) = v145 - 1; } if ( v145 <= 0 ) operator delete(v37); } width = a1->m_nameLabel->getContentSize(a1->m_nameLabel)->width; if ( width > 250.0 ) { v128 = a1->m_nameLabel; setScale = v128->setScale; v130 = (float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, float))v128->getContentSize)(v128, width); setScale(v128, 250.0 / *v130); } v39 = a1->m_nameLabel; v40 = v39->setScale; if ( v39->getScale(v39) <= 1.0 ) { v39 = a1->m_nameLabel; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v39->getScale)(v39, 1.0); } ((void (__fastcall *)(cocos2d::CCLabelBMFont *))v40)(v39); m_difficulty = a1->m_level->m_difficulty; if ( m_difficulty <= Auto ) { v42 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"diffIcon_%02d_btn_001.png", (_BYTE *)&dword_0 + 1); } else if ( m_difficulty > Demon ) { v42 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"diffIcon_%02d_btn_001.png", &byte_6); } else { v42 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"diffIcon_%02d_btn_001.png", (const char *)(unsigned int)m_difficulty); } v43 = cocos2d::CCString::getCString(v42); m_difficultySprite = a1->m_difficultySprite; v150 = v43; setDisplayFrame = m_difficultySprite->setDisplayFrame; v46 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v47 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v46, v150); setDisplayFrame(m_difficultySprite, v47); v48 = a1->m_difficultySprite; v49 = v48->m_obRect.size.width; v50 = v49 * v48->getScale(v48); v51 = a1->m_nameLabel->getContentSize(a1->m_nameLabel)->width; v52 = a1->m_nameLabel->getScale(a1->m_nameLabel); v53 = a1->m_difficultySprite; setPosition = v53->setPosition; cocos2d::CCPoint::CCPoint( &v158.origin, (float)(v50 * 0.5) - (float)((float)((float)((float)((float)((float)(v51 * v52) + 5.0) + (float)(v50 * 0.5)) + 30.0) * 0.5) - (float)(a1->m_levelDisplaySize.width * 0.5)), (float)(a1->m_levelDisplaySize.height * 0.5) + 3.0); setPosition(v53, &v158.origin); v55 = a1->m_nameLabel; v56 = v55->setPosition; v57 = a1->m_difficultySprite->getPosition(a1->m_difficultySprite); cocos2d::CCPoint::CCPoint(&v158.origin, v57->x + 30.0, (float)(a1->m_levelDisplaySize.height * 0.5) + 3.0); v56(v55, &v158.origin); m_starsLabel = a1->m_starsLabel; v59 = m_starsLabel->setString; v60 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)(a1->m_level->m_stars.random - a1->m_level->m_stars.seed)); v61 = cocos2d::CCString::getCString(v60); v59(m_starsLabel, (const unsigned __int8 *)v61); v62 = GameStatsManager::sharedState(); if ( GameStatsManager::hasCompletedStarLevel(v62, a1->m_level) ) { v63 = a1->m_starsLabel; setColor = v63->setColor; LOWORD(v158.origin.x) = -1; BYTE2(v158.origin.x) = 50; setColor(v63, (const cocos2d::ccColor3B *)&v158); } else { a1->m_starsLabel->setColor(a1->m_starsLabel, (const cocos2d::ccColor3B *)&off_ECFC60); } for ( k = 0; k != 3; ++k ) { v66 = GameStatsManager::sharedState(); CoinKey = GJGameLevel::getCoinKey(a1->m_level, (int)k + 1); if ( GameStatsManager::hasSecretCoin(v66, CoinKey) ) { v68 = cocos2d::CCArray::objectAtIndex(a1->m_coins, k); v69 = *(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v68 + 1144LL); v70 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v71 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v70, "GJ_coinsIcon_001.png"); v69(v68, v71); v72 = *(void (__fastcall **)(__int64, cocos2d::CCRect *))(*(_QWORD *)v68 + 944LL); LOWORD(v158.origin.x) = -1; BYTE2(v158.origin.x) = -1; } else { v68 = cocos2d::CCArray::objectAtIndex(a1->m_coins, k); v87 = *(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v68 + 1144LL); v88 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v89 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v88, "GJ_coinsIcon_gray_001.png"); v87(v68, v89); v72 = *(void (__fastcall **)(__int64, cocos2d::CCRect *))(*(_QWORD *)v68 + 944LL); LOWORD(v158.origin.x) = -7711; BYTE2(v158.origin.x) = -31; } v72(v68, &v158); } v73 = 0; if ( Stat < m_requiredCoins ) { while ( v73 < (unsigned int)cocos2d::CCArray::count(a1->m_levelObjects) ) { v74 = v73++; v75 = cocos2d::CCArray::objectAtIndex(a1->m_levelObjects, v74); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v75 + 328LL))(v75, 0); } v76 = cocos2d::CCSprite::createWithSpriteFrameName("GJLargeLock_001.png"); a1->m_levelDisplay->addChild(a1->m_levelDisplay, v76); v77 = v76->setPosition; cocos2d::CCPoint::CCPoint(&v158.origin, a1->m_levelDisplaySize.width * 0.5, a1->m_levelDisplaySize.height * 0.5); v77(v76, &v158.origin); v78 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png"); a1->m_levelDisplay->addChild(a1->m_levelDisplay, v78); v78->setScale(v78, 1.0); v79 = v78->setPosition; cocos2d::CCPoint::CCPoint(&v158.origin, a1->m_levelDisplaySize.width - 15.0, 15.0); v79(v78, &v158.origin); v80 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)(unsigned int)Stat, (unsigned int)m_requiredCoins); cocos2d::CCString::getCString(v80); v81 = cocos2d::CCLabelBMFont::create(); a1->m_levelDisplay->addChild(a1->m_levelDisplay, v81); setAnchorPoint = v81->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v158.origin, 1.0, 0.5); setAnchorPoint(v81, &v158.origin); v83 = v81->setPosition; v84 = (__int64)v78->getPosition(v78); cocos2d::CCPoint::CCPoint(&v157, -15.0, 0.5); cocos2d::CCPoint::operator+(&v158, v84, &v157); v83(v81, &v158.origin); v81->setScale(v81, 0.7); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v76); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v78); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v81); } else { v131 = GameStatsManager::sharedState(); BaseCurrencyForLevel = GameStatsManager::getBaseCurrencyForLevel(v131, a1->m_level); v133 = GameStatsManager::sharedState(); AwardedCurrencyForLevel = GameStatsManager::getAwardedCurrencyForLevel(v133, a1->m_level); v135 = cocos2d::CCSprite::createWithSpriteFrameName("currencyOrbIcon_001.png"); a1->m_levelDisplay->addChild(a1->m_levelDisplay, v135); v135->setScale(v135, 0.7); v136 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i/%i", (const char *)AwardedCurrencyForLevel, (unsigned int)(BaseCurrencyForLevel + (int)(float)((float)BaseCurrencyForLevel * 0.25))); cocos2d::CCString::getCString(v136); v137 = cocos2d::CCLabelBMFont::create(); a1->m_levelDisplay->addChild(a1->m_levelDisplay, v137); v138 = v137->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v158.origin, 0.0, 0.5); v138(v137, &v158.origin); v139 = v137->setPosition; cocos2d::CCPoint::CCPoint(&v158.origin, 8.0, 12.0); v139(v137, &v158.origin); v137->setScale(v137, 0.4); v140 = v135->setPosition; x = v137->getPosition(v137)->x; v142 = v137->getContentSize(v137)->width; v152 = COERCE_FLOAT(COERCE_UNSIGNED_INT128(((long double (__fastcall *)(cocos2d::CCLabelBMFont *))v137->getScale)(v137))); v143 = (__int64)v137->getPosition(v137); cocos2d::CCPoint::CCPoint(&v158.origin, (float)(x + (float)(v142 * v152)) + 9.0, *(float *)(v143 + 4) - 0.5); v140(v135, &v158.origin); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v135); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v137); } } else { v90 = 0; if ( v12 == -2 ) { while ( v90 < (unsigned int)cocos2d::CCArray::count(a1->m_progressObjects) ) { v95 = v90++; v96 = cocos2d::CCArray::objectAtIndex(a1->m_progressObjects, v95); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v96 + 328LL))(v96, 0); } v97 = cocos2d::CCSprite::createWithSpriteFrameName("theTowerDoor_001.png"); v159.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v159.adj = (size_t)LevelPage::onTheTower; v98 = CCMenuItemSpriteExtra::create(v97, nullptr, v159); v99 = cocos2d::CCMenu::createWithItem(v98); a1->addChild(a1, v99); v100 = v99->setPosition; cocos2d::CCPoint::CCPoint(&v158.origin, v153 * 0.5, (float)(v154 * 0.5) + -5.0); v100(v99, &v158.origin); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v99); v101 = cocos2d::CCSprite::createWithSpriteFrameName("theTowerLabel_001.png"); v97->addChild(v97, v101); v102 = v101->setPosition; v151 = v97->getContentSize(v97)->width * 0.5; v103 = (__int64)v97->getContentSize(v97); cocos2d::CCPoint::CCPoint(&v158.origin, v151, *(float *)(v103 + 4) + 23.0); v102(v101, &v158.origin); cocos2d::CCPoint::CCPoint(&v158.origin, 0.0, 5.0); v104 = cocos2d::CCMoveBy::create(2.5, &v158.origin); v105 = cocos2d::CCEaseInOut::create(v104, 1.8); cocos2d::CCPoint::CCPoint(&v158.origin, 0.0, -5.0); v106 = cocos2d::CCMoveBy::create(2.5, &v158.origin); v107 = cocos2d::CCEaseInOut::create(v106, 1.8); v108 = (cocos2d::CCActionInterval *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v105, v107, 0); v109 = cocos2d::CCRepeatForever::create(v108); cocos2d::CCNode::runAction(v97, v109); sub_D153B8( (int)&v155, "30a-1a2.2a0.48a11a90a180a29a0a11a0a0a0a0a0a0a0a5a1a0a0a0.0745098a0a0a0a0.611765a0a1a0a2a1a0a0a0a0a0.937255a0a1" "a0a1a0a0.54a0a0.57a0a56a0a11a0a-25a17a1a2a1a0a0a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0"); v110 = GameToolbox::particleFromString(&v155, nullptr, 0); v97->addChild_0(v97, v110, 11); v110->setScale(v110, 1.0); cocos2d::CCParticleSystem::resetSystem(v110); v111 = v110->setPosition; v112 = v97->getContentSize(v97)->width * 0.5; v113 = (__int64)v97->getContentSize(v97); cocos2d::CCPoint::CCPoint(&v158.origin, v112, *(float *)(v113 + 4) * 0.5); v111(v110, &v158.origin); sub_D153B8( (int)&v156, "20a-1a2a0.3a8a90a90a0a2a27a30a0a0a0a0a0a0a75a28a0a360a0a0a0.839216a0a1a0a0.05a0a0a0a0a0a0.184314a0a0a0a1a0a0.0" "5a0a0.73a0a0.71a0a0a0a0a0a0a0a0a2a1a1a0a0a184a0a0a0a0a0a0a1a0a0a0a0a0a0a0"); v114 = GameToolbox::particleFromString(&v156, nullptr, 0); v97->addChild_0(v97, v114, 11); v114->setScale(v114, 1.0); cocos2d::CCParticleSystem::resetSystem(v114); v115 = v114->setPosition; v116 = v97->getContentSize(v97)->width * 0.5; v117 = (__int64)v97->getContentSize(v97); cocos2d::CCPoint::CCPoint(&v158.origin, v116, *(float *)(v117 + 4) * 0.5); v115(v114, &v158.origin); sub_D153B8( (int)&v157, "3a-1a3a0.3a1a90a90a0a2a11a13a0a0a0a0a0a0a15a5a0a0a0a0a0.839216a0a1a0a0.15a0.16a0a0a0a0a0.184314a0a0a0a1a0a0.21" "a0.07a1a0a1a0a0a0a0a0a0a0a0a2a1a1a0a0a34a0a0a0a0a0a0a1a0a0a0a0a0a0a0"); v118 = GameToolbox::particleFromString(&v157, nullptr, 0); v97->addChild_0(v97, v118, 11); v118->setScale(v118, 1.0); cocos2d::CCParticleSystem::resetSystem(v118); v119 = v118->setPosition; v120 = v97->getContentSize(v97)->width * 0.5; v121 = (__int64)v97->getContentSize(v97); cocos2d::CCPoint::CCPoint(&v158.origin, v120, *(float *)(v121 + 4) * 0.5); v119(v118, &v158.origin); v122 = 20; do { v110->update(v110, 0.1); v114->update(v114, 0.1); --v122; } while ( v122 ); v123 = (void *)(*(_QWORD *)&v157 - 24LL); if ( (__int64 *)(*(_QWORD *)&v157 - 24LL) != &qword_124B6B0 ) { if ( &pthread_create ) { v148 = (unsigned int *)(*(_QWORD *)&v157 - 8LL); do v149 = __ldaxr(v148); while ( __stlxr(v149 - 1, v148) ); } else { v149 = *(_DWORD *)(*(_QWORD *)&v157 - 8LL); *(_DWORD *)(*(_QWORD *)&v157 - 8LL) = v149 - 1; } if ( v149 <= 0 ) operator delete(v123); } v124 = (void *)(v156 - 24); if ( (__int64 *)(v156 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v146 = (unsigned int *)(v156 - 8); do v147 = __ldaxr(v146); while ( __stlxr(v147 - 1, v146) ); } else { v147 = *(_DWORD *)(v156 - 8); *(_DWORD *)(v156 - 8) = v147 - 1; } if ( v147 <= 0 ) operator delete(v124); } v125 = (void *)(v155 - 24); if ( (__int64 *)(v155 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v126 = (unsigned int *)(v155 - 8); do v127 = __ldaxr(v126); while ( __stlxr(v127 - 1, v126) ); } else { v127 = *(_DWORD *)(v155 - 8); *(_DWORD *)(v155 - 8) = v127 - 1; } if ( v127 <= 0 ) operator delete(v125); } } else { while ( v90 < (unsigned int)cocos2d::CCArray::count(a1->m_progressObjects) ) { v91 = v90++; v92 = cocos2d::CCArray::objectAtIndex(a1->m_progressObjects, v91); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v92 + 328LL))(v92, 0); } v93 = cocos2d::CCLabelBMFont::create(); a1->addChild(a1, v93); v94 = v93->setPosition; cocos2d::CCPoint::CCPoint(&v158.origin, v153 * 0.5, (float)(v154 * 0.5) + 50.0); v94(v93, &v158.origin); cocos2d::CCArray::addObject(a1->m_dynamicObjects, v93); LevelPage::addSecretDoor(a1); } } m_coinObject = a1->m_coinObject; if ( m_coinObject ) m_coinObject->setVisible(a1->m_coinObject, a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed == -1); a1->m_isBusy = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source