// // GJGarageLayer::init from 0x100369280 to 0x10036ac00 (6528 bytes) // // 2 xrefs: // > GJGarageLayer::node @ 0x100369238 // > @ 0x10091b6c8 // // 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 // bool __fastcall GJGarageLayer::init(GJGarageLayer *a1) { GJGarageLayer *v1; // rbx bool result; // al cocos2d::CCSprite *v3; // r14 cocos2d::CCSprite *v4; // r15 cocos2d::CCDirector *v5; // rax cocos2d::CCDirector *v6; // rax double v7; // xmm0_8 cocos2d::CCSprite *v8; // r15 cocos2d::CCDirector *v9; // rax cocos2d::CCDirector *v10; // rax double v11; // xmm0_8 cocos2d::CCSprite *v12; // r14 cocos2d::CCDirector *v13; // rax cocos2d::CCDirector *v14; // rax double v15; // xmm0_8 GJAccountManager *v16; // rax const char *v17; // rcx CCTextInputNode *v18; // rax CCTextInputNode *m_usernameInput; // r14 cocos2d::CCDirector *v20; // rax double v21; // xmm0_8 CCTextInputNode *v22; // rdi std::string *v23; // r14 __m128 v24; // xmm0 GJAccountManager *v25; // rax bool v26; // zf GameManager *v27; // rax std::string *p_m_playerName; // rax cocos2d::CCMenuItem *v29; // r14 GJAccountManager *v30; // rax std::string *p_m_username; // rax const char *v32; // r15 __int64 v33; // rbx cocos2d::CCMenuItem *v34; // r14 GameManager *v35; // rax std::string *v36; // rax const char *v37; // r15 size_t v38; // rax size_t v39; // r12 char *v40; // r13 size_t v41; // r14 cocos2d::CCSprite *v42; // r14 _QWORD *v43; // rsi unsigned __int64 *v44; // r15 size_t v45; // rax size_t v46; // r12 char *v47; // r13 size_t v48; // r14 cocos2d::CCSprite *v49; // r14 unsigned __int64 *v50; // r15 cocos2d::CCSprite *v51; // r14 GameManager *v52; // rax int random; // r12d int seed; // ebx char *v55; // r15 GJGarageLayer *v56; // rbx _QWORD *v57; // r15 float v58; // xmm0_4 SimplePlayer *m_playerObject; // r15 unsigned __int64 *v60; // r14 double v61; // xmm0_8 SimplePlayer *v62; // r14 GameManager *v63; // rax int v64; // esi SimplePlayer *v65; // rdi IconType v66; // edx GJRobotSprite *v67; // rax GJSpiderSprite *v68; // rax __int64 v69; // r15 SimplePlayer *v70; // r14 GameManager *v71; // rax SimplePlayer *v72; // r14 GameManager *v73; // rax SimplePlayer *v74; // r14 GameManager *v75; // rax SimplePlayer *v76; // r14 GameManager *v77; // rax SimplePlayer *v78; // r14 GameManager *v79; // rax SimplePlayer *v80; // r14 GameManager *v81; // rax SimplePlayer *v82; // r14 GameManager *v83; // rax cocos2d::CCSprite *v84; // rax CCMenuItemSpriteExtra *v85; // r14 int v86; // edx int v87; // ecx int v88; // r8d int v89; // r9d const cocos2d::CCPoint *v90; // r15 cocos2d::CCDirector *v91; // rax cocos2d::CCDirector *v92; // rax double v93; // xmm0_8 cocos2d::CCSprite *v94; // rax CCMenuItemSpriteExtra *v95; // r14 cocos2d::CCSprite *v96; // rax CCMenuItemSpriteExtra *v97; // r14 cocos2d::CCSprite *v98; // rax CCMenuItemSpriteExtra *v99; // r14 cocos2d::CCSprite *v100; // r14 cocos2d::CCDirector *v101; // rax cocos2d::CCDirector *v102; // rax double v103; // xmm0_8 GameStatsManager *v104; // rax cocos2d::CCString *v105; // rax const char *CString; // rax cocos2d::CCLabelBMFont *v107; // r12 unsigned __int64 *v108; // r13 cocos2d::CCSprite *v109; // r12 cocos2d::CCLayer *v110; // r13 unsigned __int64 *v111; // rbx GameStatsManager *v112; // rax cocos2d::CCString *v113; // rax const char *v114; // rax cocos2d::CCLabelBMFont *v115; // r14 unsigned __int64 *v116; // rbx cocos2d::CCSprite *v117; // r14 cocos2d::CCLayer *v118; // r13 unsigned __int64 *v119; // rbx GameStatsManager *v120; // rax cocos2d::CCString *v121; // rax const char *v122; // rax cocos2d::CCLabelBMFont *v123; // r12 unsigned __int64 *v124; // rbx cocos2d::CCSprite *v125; // r12 cocos2d::CCLayer *v126; // r13 unsigned __int64 *v127; // rbx GameStatsManager *v128; // rax cocos2d::CCString *v129; // rax const char *v130; // rax cocos2d::CCLabelBMFont *v131; // r14 unsigned __int64 *v132; // rbx cocos2d::CCSprite *v133; // r14 cocos2d::CCLayer *v134; // r13 unsigned __int64 *v135; // rbx GameStatsManager *v136; // rax cocos2d::CCString *v137; // rax const char *v138; // rax cocos2d::CCLabelBMFont *v139; // r12 unsigned __int64 *v140; // rbx cocos2d::CCSprite *v141; // r12 cocos2d::CCLayer *v142; // r13 unsigned __int64 *v143; // rbx GameStatsManager *v144; // rax cocos2d::CCString *v145; // rax const char *v146; // rax cocos2d::CCLabelBMFont *v147; // r14 unsigned __int64 *v148; // rbx cocos2d::CCSprite *v149; // r14 cocos2d::CCLayer *v150; // r13 unsigned __int64 *v151; // rbx GameStatsManager *v152; // rax cocos2d::CCString *v153; // rax const char *v154; // rax cocos2d::CCLabelBMFont *v155; // r12 unsigned __int64 *v156; // rbx GameManager *v157; // rax cocos2d::CCSprite *v158; // rbx CCMenuItemSpriteExtra *v159; // r14 cocos2d::CCDirector *v160; // rax cocos2d::CCDirector *v161; // rax double v162; // xmm0_8 unsigned __int64 v163; // [rsp+0h] [rbp-C0h] BYREF const cocos2d::CCPoint *v164; // [rsp+8h] [rbp-B8h] std::string v165; // [rsp+10h] [rbp-B0h] BYREF _QWORD __dst[2]; // [rsp+28h] [rbp-98h] BYREF void *v167; // [rsp+38h] [rbp-88h] _QWORD v168[2]; // [rsp+40h] [rbp-80h] BYREF void *v169; // [rsp+50h] [rbp-70h] float v170; // [rsp+58h] [rbp-68h] BYREF float v171; // [rsp+5Ch] [rbp-64h] cocos2d::CCLayer *v172; // [rsp+60h] [rbp-60h] CCMenuItemSpriteExtra *v173; // [rsp+68h] [rbp-58h] bool v174; // [rsp+73h] [rbp-4Dh] unsigned __int64 v175; // [rsp+74h] [rbp-4Ch] BYREF float v176; // [rsp+7Ch] [rbp-44h] char __s[16]; // [rsp+80h] [rbp-40h] BYREF void *longStorage; // [rsp+90h] [rbp-30h] double v179; // 0:xmm0_8.8 double v180; // 0:xmm0_8.8 double v181; // 0:xmm0_8.8 double v182; // 0:xmm0_8.8 v1 = a1; result = cocos2d::CCLayer::init(a1); if ( !result ) return result; v174 = result; GameManager::sharedState()->m_inMenuLayer = 1; GameManager::sharedState()->m_sceneEnum = 0; ((void (__fastcall *)(GJGarageLayer *, __int64))a1->setKeypadEnabled)(a1, 1); ((void (__fastcall *)(GJGarageLayer *, __int64))a1->setKeyboardEnabled)(a1, 1); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v170); v176 = v171 * 0.5; v3 = cocos2d::CCSprite::create_1("GJ_gradientBG.png"); sub_10028CBE0((float *)__s, 0.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v3->setAnchorPoint)(v3, __s); ((void (__fastcall *)(GJGarageLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v3, 4294967294LL); ((void (__fastcall *)(cocos2d::CCSprite *, float))v3->setScaleX)(v3, (float)(v170 + 10.0) / v3->m_obRect.size.width); ((void (__fastcall *)(cocos2d::CCSprite *, float))v3->setScaleY)(v3, (float)(v171 + 10.0) / v3->m_obRect.size.height); sub_10028CBE0((float *)__s, -5.0, -5.0); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v3->setPosition)(v3, __s); memset(__s, 150, 3); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v3->setColor)(v3, __s); v4 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); sub_10028CBE0((float *)__s, 0.0, 1.0); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v4->setAnchorPoint)(v4, __s); v5 = cocos2d::CCDirector::sharedDirector(); *(float *)&v173 = sub_100484D90(v5) + -1.0; v6 = cocos2d::CCDirector::sharedDirector(); v7 = sub_100484D70(v6); sub_10028CBE0((float *)__s, *(float *)&v173, *(float *)&v7 + 1.0); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v4->setPosition)(v4, __s); cocos2d::CCSprite::setFlipY(v4, 1); ((void (__fastcall *)(GJGarageLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v4, 0xFFFFFFFFLL); v8 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); sub_10028CBE0((float *)__s, 0.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v8->setAnchorPoint)(v8, __s); v9 = cocos2d::CCDirector::sharedDirector(); *(float *)&v173 = sub_100484D90(v9) + -1.0; v10 = cocos2d::CCDirector::sharedDirector(); v11 = sub_100484D80(v10); sub_10028CBE0((float *)__s, *(float *)&v173, *(float *)&v11 + -1.0); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v8->setPosition)(v8, __s); ((void (__fastcall *)(GJGarageLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v8, 1); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png"); sub_10028CBE0((float *)__s, 1.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v12->setAnchorPoint)(v12, __s); v13 = cocos2d::CCDirector::sharedDirector(); *(float *)&v173 = sub_100484DA0(v13) + 1.0; v14 = cocos2d::CCDirector::sharedDirector(); v15 = sub_100484D80(v14); sub_10028CBE0((float *)__s, *(float *)&v173, *(float *)&v15 + -1.0); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v12->setPosition)(v12, __s); cocos2d::CCSprite::setFlipX(v12, 1); ((void (__fastcall *)(GJGarageLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v12, 1); v16 = GJAccountManager::sharedState(); v17 = "goldFont.fnt"; if ( v16->m_accountID == v16->m_unkInt1 ) v17 = "bigFont.fnt"; v18 = CCTextInputNode::create(180.0, 50.0, "Player", "Thonburi", 24, v17); a1->m_usernameInput = v18; ((void (__fastcall *)(GJGarageLayer *, CCTextInputNode *, __int64))a1->addChild_0)(a1, v18, 20); m_usernameInput = a1->m_usernameInput; m_usernameInput->m_delegate = &a1->TextInputDelegate; *(float *)&v173 = v170 * 0.5; v20 = cocos2d::CCDirector::sharedDirector(); v21 = sub_100484D70(v20); sub_10028CBE0((float *)__s, *(float *)&v173, *(float *)&v21 + -34.0); ((void (__fastcall *)(CCTextInputNode *, char *))m_usernameInput->setPosition)(m_usernameInput, __s); ((void (__fastcall *)(cocos2d::CCTextFieldTTF *, _QWORD))a1->m_usernameInput->m_textField->setVisible)( a1->m_usernameInput->m_textField, 0); v22 = a1->m_usernameInput; v22->m_maxLabelLength = 15; CCTextInputNode::setLabelPlaceholderColor(v22, (cocos2d::ccColor3B)-1004936); CCTextInputNode::setLabelPlaceholderScale(v1->m_usernameInput, 0.69999999); v23 = (std::string *)v1->m_usernameInput; v165.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u); v165.__r_.__value_.__r.__words[0] = 65; v165.__r_.__value_.__l.__size_ = 62; v24 = *(__m128 *)"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; strcpy(v165.__r_.__value_.__l.__data_, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); CCTextInputNode::setAllowedChars(v23, &v165); if ( (*(_BYTE *)&v165.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v165.__r_.__value_.__l.__data_); v25 = GJAccountManager::sharedState(); v26 = v25->m_accountID == v25->m_unkInt1; v172 = v1; if ( v26 ) { v27 = GameManager::sharedState(); if ( (v27->m_playerName.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( __s, v27->m_playerName.m_data.m_long.longStorage, v27->m_playerName.m_data.m_long.size, 8.540883223036124e194); } else { p_m_playerName = &v27->m_playerName; longStorage = p_m_playerName->m_data.m_long.longStorage; v24 = *(__m128 *)&p_m_playerName->m_data.m_short.sizex2; *(_OWORD *)__s = *(_OWORD *)&p_m_playerName->m_data.m_short.sizex2; } if ( (__s[0] & 1) != 0 ) { v33 = *(_QWORD *)&__s[8]; operator delete(longStorage); v26 = v33 == 0; v1 = (GJGarageLayer *)v172; if ( v26 ) { LABEL_49: if ( !GameManager::sharedState()->m_clickedName ) { v49 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_nameTxt_001.png"); ((void (__fastcall *)(GJGarageLayer *, cocos2d::CCSprite *))v1->addChild)(v1, v49); v50 = (unsigned __int64 *)((__int64 (__fastcall *)(CCTextInputNode *))v1->m_usernameInput->getPosition)(v1->m_usernameInput); sub_10028CBE0((float *)&v175, 115.0, 10.0); sub_10028CCE0((double *)__s, v50, &v175); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v49->setPosition)(v49, __s); } goto LABEL_51; } } else { v1 = (GJGarageLayer *)v172; if ( !((unsigned __int8)__s[0] >> 1) ) goto LABEL_49; } v34 = (cocos2d::CCMenuItem *)v1->m_usernameInput; v35 = GameManager::sharedState(); if ( (v35->m_playerName.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( __s, v35->m_playerName.m_data.m_long.longStorage, v35->m_playerName.m_data.m_long.size, *(double *)v24.i64); if ( (__s[0] & 1) == 0 ) goto LABEL_19; } else { v36 = &v35->m_playerName; longStorage = v36->m_data.m_long.longStorage; v24 = *(__m128 *)&v36->m_data.m_short.sizex2; *(_OWORD *)__s = *(_OWORD *)&v36->m_data.m_short.sizex2; if ( (__s[0] & 1) == 0 ) { LABEL_19: v37 = &__s[1]; goto LABEL_37; } } v37 = (const char *)longStorage; LABEL_37: v45 = strlen(v37); if ( v45 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)v24.i64); v46 = v45; if ( v45 >= 0x17 ) { v173 = (CCMenuItemSpriteExtra *)v34; v48 = 26; if ( (v45 | 7) != 0x17 ) v48 = (v45 | 7) + 1; v47 = (char *)operator new(v48); v169 = v47; v168[0] = v48 | 1; v168[1] = v46; v34 = v173; } else { LOBYTE(v168[0]) = 2 * v45; v47 = (char *)v168 + 1; if ( !v45 ) goto LABEL_45; } memmove(v47, v37, v46); LABEL_45: v47[v46] = 0; CCTextInputNode::setString((CCTextInputNode *)v34, (__int64)v168, v24); if ( (v168[0] & 1) != 0 ) operator delete(v169); if ( (__s[0] & 1) != 0 ) operator delete(longStorage); goto LABEL_49; } v29 = (cocos2d::CCMenuItem *)v1->m_usernameInput; v30 = GJAccountManager::sharedState(); if ( (v30->m_username.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( __s, v30->m_username.m_data.m_long.longStorage, v30->m_username.m_data.m_long.size, 8.540883223036124e194); if ( (__s[0] & 1) == 0 ) goto LABEL_11; } else { p_m_username = &v30->m_username; longStorage = p_m_username->m_data.m_long.longStorage; v24 = *(__m128 *)&p_m_username->m_data.m_short.sizex2; *(_OWORD *)__s = *(_OWORD *)&p_m_username->m_data.m_short.sizex2; if ( (__s[0] & 1) == 0 ) { LABEL_11: v32 = &__s[1]; goto LABEL_22; } } v32 = (const char *)longStorage; LABEL_22: v38 = strlen(v32); if ( v38 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)v24.i64); v39 = v38; if ( v38 >= 0x17 ) { v173 = (CCMenuItemSpriteExtra *)v29; v41 = 26; if ( (v38 | 7) != 0x17 ) v41 = (v38 | 7) + 1; v40 = (char *)operator new(v41); v167 = v40; __dst[0] = v41 | 1; __dst[1] = v39; v29 = v173; } else { LOBYTE(__dst[0]) = 2 * v38; v40 = (char *)__dst + 1; if ( !v38 ) goto LABEL_30; } memmove(v40, v32, v39); LABEL_30: v40[v39] = 0; CCTextInputNode::setString((CCTextInputNode *)v29, (__int64)__dst, v24); if ( (__dst[0] & 1) != 0 ) operator delete(v167); if ( (__s[0] & 1) != 0 ) operator delete(longStorage); ((void (__fastcall *)(CCTextInputNode *, _QWORD))v1->m_usernameInput->setTouchEnabled)(v1->m_usernameInput, 0); v42 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png"); ((void (__fastcall *)(GJGarageLayer *, cocos2d::CCSprite *, __int64))v1->addChild_0)(v1, v42, 2); v43 = (_QWORD *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v1->m_usernameInput->m_textLabel->getContentSize)(v1->m_usernameInput->m_textLabel); sub_10028CFC0(__s, v43); v44 = (unsigned __int64 *)((__int64 (__fastcall *)(CCTextInputNode *))v1->m_usernameInput->getPosition)(v1->m_usernameInput); sub_10028CBE0((float *)&v163, (float)(*(float *)__s * 0.5) + 8.0, 10.0); sub_10028CCE0((double *)&v175, v44, &v163); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned __int64 *))v42->setPosition)(v42, &v175); ((void (__fastcall *)(cocos2d::CCSprite *, float))v42->setScale)(v42, 0.60000002); LABEL_51: v176 = v176 + 50.0; v51 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png"); ((void (__fastcall *)(GJGarageLayer *, cocos2d::CCSprite *, _QWORD))v1->addChild_0)(v1, v51, 0); sub_10028CBE0((float *)__s, v170 * 0.5, v176); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v51->setPosition)(v51, __s); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v51->setBlendFunc)(v51, 0x100000302LL); v52 = GameManager::sharedState(); random = v52->m_playerFrame.random; seed = v52->m_playerFrame.seed; v55 = (char *)operator new(0x2A8u); cocos2d::CCSprite::CCSprite((__int64)v55, 0x100000302LL); *(_QWORD *)v55 = off_10091BD20; *((_QWORD *)v55 + 40) = off_10091C1F8; *((_QWORD *)v55 + 43) = off_10091C278; *((_DWORD *)v55 + 166) = 0; v55[668] = 0; v55[672] = 0; *(_OWORD *)(v55 + 600) = 0; *(_OWORD *)(v55 + 616) = 0; *(_OWORD *)(v55 + 632) = 0; *(_OWORD *)(v55 + 645) = 0; if ( SimplePlayer::init((SimplePlayer *)v55, random - seed) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v55); } else { (*(void (__fastcall **)(char *))(*(_QWORD *)v55 + 16LL))(v55); v55 = nullptr; } v56 = (GJGarageLayer *)v172; *(_QWORD *)&v172[1].m_fScaleX = v55; ((void (__fastcall *)(GJGarageLayer *, char *, _QWORD))v56->addChild_0)(v56, v55, 0); v57 = &v56->m_playerObject->__vftable; if ( !v57[80] ) { v67 = GJRobotSprite::create(1); v57[80] = v67; (*(void (__fastcall **)(_QWORD *, GJRobotSprite *))(*v57 + 440LL))(v57, v67); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v57[80] + 328LL))(v57[80], 0); v57 = &v56->m_playerObject->__vftable; if ( v57[81] ) goto LABEL_56; LABEL_59: v68 = GJSpiderSprite::create(1); v57[81] = v68; (*(void (__fastcall **)(_QWORD *, GJSpiderSprite *))(*v57 + 440LL))(v57, v68); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v57[81] + 328LL))(v57[81], 0); v69 = v57[81]; sub_10028CBE0((float *)__s, 0.0, -1.5); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v69 + 184LL))(v69, __s); v57 = &v56->m_playerObject->__vftable; goto LABEL_56; } if ( !v57[81] ) goto LABEL_59; LABEL_56: v58 = flt_100819E88[GameManager::sharedState()->m_playerIconType == Jetpack]; (*(void (__fastcall **)(_QWORD *, float))(*v57 + 160LL))(v57, v58); m_playerObject = v56->m_playerObject; v60 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v51->getPosition)(v51); v61 = ((double (__fastcall *)(SimplePlayer *))v56->m_playerObject->getScale)(v56->m_playerObject); sub_10028CBE0((float *)&v175, 0.0, (float)((float)(*(float *)&v61 * 30.0) * 0.5) + 1.0); sub_10028CCE0((double *)__s, v60, &v175); ((void (__fastcall *)(SimplePlayer *, char *))m_playerObject->setPosition)(m_playerObject, __s); GJGarageLayer::updatePlayerColors(v56); switch ( GameManager::sharedState()->m_playerIconType ) { case Ship: v62 = v56->m_playerObject; v63 = GameManager::sharedState(); v64 = v63->m_playerShip.random - v63->m_playerShip.seed; v65 = v62; v66 = Ship; goto LABEL_67; case Ball: v78 = v56->m_playerObject; v79 = GameManager::sharedState(); v64 = v79->m_playerBall.random - v79->m_playerBall.seed; v65 = v78; v66 = Ball; goto LABEL_67; case Ufo: v72 = v56->m_playerObject; v73 = GameManager::sharedState(); v64 = v73->m_playerBird.random - v73->m_playerBird.seed; v65 = v72; v66 = Ufo; goto LABEL_67; case Wave: v74 = v56->m_playerObject; v75 = GameManager::sharedState(); v64 = v75->m_playerDart.random - v75->m_playerDart.seed; v65 = v74; v66 = Wave; goto LABEL_67; case Robot: v70 = v56->m_playerObject; v71 = GameManager::sharedState(); v64 = v71->m_playerRobot.random - v71->m_playerRobot.seed; v65 = v70; v66 = Robot; goto LABEL_67; case Spider: v80 = v56->m_playerObject; v81 = GameManager::sharedState(); v64 = v81->m_playerSpider.random - v81->m_playerSpider.seed; v65 = v80; v66 = Spider; goto LABEL_67; case Swing: v82 = v56->m_playerObject; v83 = GameManager::sharedState(); v64 = v83->m_playerSwing.random - v83->m_playerSwing.seed; v65 = v82; v66 = Swing; goto LABEL_67; case Jetpack: v76 = v56->m_playerObject; v77 = GameManager::sharedState(); v64 = v77->m_playerJetpack.random - v77->m_playerJetpack.seed; v65 = v76; v66 = Jetpack; LABEL_67: SimplePlayer::updatePlayerFrame(v65, v64, v66); break; default: break; } GJGarageLayer::setupIconSelect(v56); v84 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_03_001.png"); v85 = CCMenuItemSpriteExtra::create( v84, nullptr, v56, (cocos2d::SEL_MenuHandler)(unsigned __int64)GJGarageLayer::onBack); CCMenuItemSpriteExtra::setSizeMult(v85, 1.6); v173 = v85; v90 = (const cocos2d::CCPoint *)sub_100792C50((_DWORD)v85, 0, v86, v87, v88, v89); ((void (__fastcall *)(GJGarageLayer *, const cocos2d::CCPoint *, __int64))v56->addChild_0)(v56, v90, 1); v91 = cocos2d::CCDirector::sharedDirector(); v176 = sub_100484D90(v91) + 24.0; v92 = cocos2d::CCDirector::sharedDirector(); v93 = sub_100484D70(v92); sub_10028CBE0((float *)__s, v176, *(float *)&v93 + -23.0); (*(void (__fastcall **)(const cocos2d::CCPoint *, char *))(*(_QWORD *)v90 + 184LL))(v90, __s); v94 = cocos2d::CCSprite::createWithSpriteFrameName("shopRope_001.png"); v95 = CCMenuItemSpriteExtra::create( v94, nullptr, v56, (cocos2d::SEL_MenuHandler)(unsigned __int64)GJGarageLayer::onShop); CCMenuItemSpriteExtra::useAnimationType(v95, Move); sub_10028CBE0((float *)__s, 0.0, -15.0); sub_10028CC90(&v95->m_offset, (double *)__s); *(_QWORD *)&v95->m_duration = 0x3E99999A3E99999ALL; (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v90 + 440LL))(v90, v95); sub_10028CBE0((float *)&v175, (float)(v170 * 0.5) + -135.0, v171 + -25.0); *(cocos2d::CCPoint *)&v179 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)__s, v90); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char *, double))v95->setPosition)(v95, __s, v179); v96 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_shardsBtn_001.png"); v97 = CCMenuItemSpriteExtra::create( v96, nullptr, v56, (cocos2d::SEL_MenuHandler)(unsigned __int64)GJGarageLayer::onShards); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v90 + 440LL))(v90, v97); sub_10028CBE0((float *)&v175, 30.0, v171 + -80.0); *(cocos2d::CCPoint *)&v180 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)__s, v90); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char *, double))v97->setPosition)(v97, __s, v180); v98 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_paintBtn_001.png"); v99 = CCMenuItemSpriteExtra::create( v98, nullptr, v56, (cocos2d::SEL_MenuHandler)(unsigned __int64)GJGarageLayer::onPaint); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v90 + 440LL))(v90, v99); sub_10028CBE0((float *)&v175, 30.0, v171 + -120.0); v164 = v90; *(cocos2d::CCPoint *)&v181 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)__s, v90); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char *, double))v99->setPosition)(v99, __s, v181); v100 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_starsIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v100->setScale)(v100, 0.54000002); ((void (__fastcall *)(GJGarageLayer *, cocos2d::CCSprite *))v56->addChild)(v56, v100); v101 = cocos2d::CCDirector::sharedDirector(); v176 = sub_100484DA0(v101) + -18.0; v102 = cocos2d::CCDirector::sharedDirector(); v103 = sub_100484D70(v102); sub_10028CBE0((float *)__s, v176, *(float *)&v103 + -12.0); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v100->setPosition)(v100, __s); v104 = GameStatsManager::sharedState(); GameStatsManager::getStat(v104, "6"); v105 = (cocos2d::CCString *)sub_1007AB580("%i", v163); CString = cocos2d::CCString::getCString(v105); v107 = cocos2d::CCLabelBMFont::create_3(CString, "bigFont.fnt"); ((void (__fastcall *)(GJGarageLayer *, cocos2d::CCLabelBMFont *))v56->addChild)(v56, v107); sub_10028CBE0((float *)__s, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v107->setAnchorPoint)(v107, __s); v108 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v100->getPosition)(v100); sub_10028CBE0((float *)&v175, -12.0, 0.5); sub_10028CCE0((double *)__s, v108, &v175); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v107->setPosition)(v107, __s); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v107->setScale)(v107, 0.34); v109 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_moonsIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v109->setScale)(v109, 0.54000002); v110 = v172; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))v172->addChild)(v172, v109); v111 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v100->getPosition)(v100); sub_10028CBE0((float *)&v175, 0.0, -15.0); sub_10028CCE0((double *)__s, v111, &v175); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v109->setPosition)(v109, __s); v112 = GameStatsManager::sharedState(); GameStatsManager::getStat(v112, "28"); v113 = (cocos2d::CCString *)sub_1007AB580("%i", v163); v114 = cocos2d::CCString::getCString(v113); v115 = cocos2d::CCLabelBMFont::create_3(v114, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))v110->addChild)(v110, v115); sub_10028CBE0((float *)__s, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v115->setAnchorPoint)(v115, __s); v116 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v109->getPosition)(v109); sub_10028CBE0((float *)&v175, -12.0, 0.5); sub_10028CCE0((double *)__s, v116, &v175); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v115->setPosition)(v115, __s); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v115->setScale)(v115, 0.34); v117 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon_001.png"); v118 = v172; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))v172->addChild)(v172, v117); v119 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v109->getPosition)(v109); sub_10028CBE0((float *)&v175, 0.0, -15.0); sub_10028CCE0((double *)__s, v119, &v175); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v117->setPosition)(v117, __s); ((void (__fastcall *)(cocos2d::CCSprite *, float))v117->setScale)(v117, 0.51000005); v120 = GameStatsManager::sharedState(); GameStatsManager::getStat(v120, "8"); v121 = (cocos2d::CCString *)sub_1007AB580("%i", v163); v122 = cocos2d::CCString::getCString(v121); v123 = cocos2d::CCLabelBMFont::create_3(v122, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))v118->addChild)(v118, v123); sub_10028CBE0((float *)__s, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v123->setAnchorPoint)(v123, __s); v124 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v117->getPosition)(v117); sub_10028CBE0((float *)&v175, -12.0, 0.5); sub_10028CCE0((double *)__s, v124, &v175); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v123->setPosition)(v123, __s); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v123->setScale)(v123, 0.34); v125 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon2_001.png"); v126 = v172; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))v172->addChild)(v172, v125); v127 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v117->getPosition)(v117); sub_10028CBE0((float *)&v175, 0.0, -15.0); sub_10028CCE0((double *)__s, v127, &v175); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v125->setPosition)(v125, __s); ((void (__fastcall *)(cocos2d::CCSprite *, float))v125->setScale)(v125, 0.51000005); v128 = GameStatsManager::sharedState(); GameStatsManager::getStat(v128, "12"); v129 = (cocos2d::CCString *)sub_1007AB580("%i", v163); v130 = cocos2d::CCString::getCString(v129); v131 = cocos2d::CCLabelBMFont::create_3(v130, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))v126->addChild)(v126, v131); sub_10028CBE0((float *)__s, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v131->setAnchorPoint)(v131, __s); v132 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v125->getPosition)(v125); sub_10028CBE0((float *)&v175, -12.0, 0.5); sub_10028CCE0((double *)__s, v132, &v175); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v131->setPosition)(v131, __s); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v131->setScale)(v131, 0.34); v133 = cocos2d::CCSprite::createWithSpriteFrameName("currencyOrbIcon_001.png"); v134 = v172; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))v172->addChild)(v172, v133); ((void (__fastcall *)(cocos2d::CCSprite *, float))v133->setScale)(v133, 0.54000002); v135 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v125->getPosition)(v125); sub_10028CBE0((float *)&v175, 0.0, -15.0); sub_10028CCE0((double *)__s, v135, &v175); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v133->setPosition)(v133, __s); v136 = GameStatsManager::sharedState(); GameStatsManager::getStat(v136, "14"); v137 = (cocos2d::CCString *)sub_1007AB580("%i", v163); v138 = cocos2d::CCString::getCString(v137); v139 = cocos2d::CCLabelBMFont::create_3(v138, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))v134->addChild)(v134, v139); sub_10028CBE0((float *)__s, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v139->setAnchorPoint)(v139, __s); v140 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v133->getPosition)(v133); sub_10028CBE0((float *)&v175, -12.0, 0.5); sub_10028CCE0((double *)__s, v140, &v175); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v139->setPosition)(v139, __s); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v139->setScale)(v139, 0.34); v141 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_diamondsIcon_001.png"); v142 = v172; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))v172->addChild)(v172, v141); ((void (__fastcall *)(cocos2d::CCSprite *, float))v141->setScale)(v141, 0.60000002); v143 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v133->getPosition)(v133); sub_10028CBE0((float *)&v175, 0.0, -15.0); sub_10028CCE0((double *)__s, v143, &v175); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v141->setPosition)(v141, __s); v144 = GameStatsManager::sharedState(); GameStatsManager::getStat(v144, "13"); v145 = (cocos2d::CCString *)sub_1007AB580("%i", v163); v146 = cocos2d::CCString::getCString(v145); v147 = cocos2d::CCLabelBMFont::create_3(v146, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))v142->addChild)(v142, v147); sub_10028CBE0((float *)__s, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v147->setAnchorPoint)(v147, __s); v148 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v141->getPosition)(v141); sub_10028CBE0((float *)&v175, -12.0, 0.5); sub_10028CCE0((double *)__s, v148, &v175); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v147->setPosition)(v147, __s); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v147->setScale)(v147, 0.34); v149 = cocos2d::CCSprite::createWithSpriteFrameName("currencyDiamondIcon_001.png"); v150 = v172; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *))v172->addChild)(v172, v149); ((void (__fastcall *)(cocos2d::CCSprite *, float))v149->setScale)(v149, 0.54000002); v151 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v141->getPosition)(v141); sub_10028CBE0((float *)&v175, 0.0, -15.0); sub_10028CCE0((double *)__s, v151, &v175); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v149->setPosition)(v149, __s); v152 = GameStatsManager::sharedState(); GameStatsManager::getStat(v152, "29"); v153 = (cocos2d::CCString *)sub_1007AB580("%i", v163); v154 = cocos2d::CCString::getCString(v153); v155 = cocos2d::CCLabelBMFont::create_3(v154, "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))v150->addChild)(v150, v155); sub_10028CBE0((float *)__s, 1.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v155->setAnchorPoint)(v155, __s); v156 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v149->getPosition)(v149); sub_10028CBE0((float *)&v175, -12.0, 0.5); sub_10028CCE0((double *)__s, v156, &v175); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))v155->setPosition)(v155, __s); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v155->setScale)(v155, 0.34); v157 = GameManager::sharedState(); if ( v157->m_playerUserID.random != v157->m_playerUserID.seed ) { v158 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_infoIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v158->setScale)(v158, 0.80000001); v159 = CCMenuItemSpriteExtra::create( v158, nullptr, v172, (cocos2d::SEL_MenuHandler)(unsigned __int64)GJGarageLayer::onInfo); CCMenuItemSpriteExtra::setSizeMult(v159, 2.0); v160 = cocos2d::CCDirector::sharedDirector(); v176 = sub_100484DA0(v160) + -15.0; v161 = cocos2d::CCDirector::sharedDirector(); v162 = sub_100484D70(v161); sub_10028CBE0((float *)&v175, v176, *(float *)&v162 + -15.0); *(cocos2d::CCPoint *)&v182 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)__s, v164); ((void (__fastcall *)(CCMenuItemSpriteExtra *, char *, double))v159->setPosition)(v159, __s, v182); } if ( PlatformToolbox::isControllerConnected() ) GameToolbox::addBackButton(v172, v173); return v174; }
GD Web Decomp Icon

GD Web Decomp

Raw Source