// // PlayerObject::init from 0x766fec to 0x768224 (4664 bytes) // // 2 xrefs: // > PlayerObject::create @ 0x768bd8 // > @ 0x73540 // // This function is hookable on this platform (idp: arm, 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:53:08 +0000 // __int64 __fastcall PlayerObject::init( PlayerObject *this, int a2, int a3, GJBaseGameLayer *a4, cocos2d::CCLayer *a5, unsigned __int8 a6) { int v8; // w25 unsigned int v9; // w21 unsigned int v10; // w22 GameManager *v11; // x0 GameManager *IconRequestID; // x0 __int64 **v13; // x0 GameManager *Icon; // x0 __int64 **v15; // x0 cocos2d::CCString *v16; // x0 const char *CString; // x0 size_t v18; // x0 cocos2d::CCString *v19; // x0 size_t v20; // x0 char *v21; // x1 unsigned __int8 v22; // w0 unsigned int v23; // w26 __int64 v25; // x0 __int64 *v26; // x0 GameManager *v27; // x0 GameManager *GameVariable; // x0 GameManager *v29; // x0 GameManager *v30; // x0 GameManager *v31; // x0 GameStatsManager *v32; // x0 __int64 v33; // x0 GameStatsManager *isItemEnabled; // x0 __int64 v35; // x0 GameStatsManager *v36; // x0 __int64 v37; // x0 int v38; // w0 cocos2d::CCObject *v39; // x0 char *v40; // x0 __int64 v41; // x0 __int64 v42; // x3 cocos2d::CCSprite *v43; // x0 __int64 v44; // x0 __int64 v45; // x3 __int64 v46; // x25 void (__fastcall *v47)(__int64, __int64 *); // x28 cocos2d::CCSprite *v48; // x0 __int64 v49; // x0 __int64 v50; // x3 __int64 v51; // x23 void (__fastcall *v52)(__int64, __int64 *); // x25 cocos2d::CCString *v53; // x0 size_t v54; // x0 cocos2d::CCString *v55; // x0 size_t v56; // x0 cocos2d::CCString *v57; // x0 size_t v58; // x0 cocos2d::CCSprite *v59; // x0 __int64 v60; // x0 __int64 v61; // x3 cocos2d::CCSprite *v62; // x0 __int64 v63; // x0 __int64 v64; // x3 __int64 v65; // x25 void (__fastcall *v66)(__int64, __int64 *); // x28 cocos2d::CCSprite *v67; // x0 __int64 v68; // x0 __int64 v69; // x3 __int64 v70; // x25 void (__fastcall *v71)(__int64, __int64 *); // x28 cocos2d::CCSprite *v72; // x0 __int64 v73; // x0 __int64 v74; // x3 __int64 v75; // x23 void (__fastcall *v76)(__int64, __int64 *); // x25 cocos2d::CCString *v77; // x0 size_t v78; // x0 GameManager *v79; // x0 __int64 v80; // x0 PlayerFireBoostSprite *Robot; // x0 __int64 v82; // x0 __int64 v83; // x3 GameManager *v84; // x0 __int64 v85; // x0 __int64 Spider; // x0 int v87; // w28 __int64 i; // x25 __int64 v89; // x23 int v90; // w1 __int64 v91; // x2 __int64 v92; // x23 void (__fastcall *v93)(__int64, __int64 *); // x25 __int64 v94; // x23 void (__fastcall *v95)(__int64, __int64 *); // x25 __int64 v96; // x23 void (__fastcall *v97)(__int64, __int64 *); // x25 cocos2d::CCNode *updated; // x0 cocos2d::CCObject *v99; // x0 cocos2d::CCDictionary *v100; // x0 cocos2d::CCObject *v101; // x0 cocos2d::CCDictionary *v102; // x0 cocos2d::CCObject *v103; // x0 cocos2d::CCDictionary *v104; // x0 cocos2d::CCObject *v105; // x0 cocos2d::CCDictionary *v106; // x0 cocos2d::CCObject *v107; // x0 cocos2d::CCArray *v108; // x0 cocos2d::CCObject *v109; // x0 GJActionManager *v110; // x0 cocos2d::CCObject *v111; // x0 bool v112; // w2 __int64 v113; // x0 bool v114; // w2 __int64 v115; // x0 bool v116; // w2 __int64 v117; // x0 bool v118; // w2 __int64 v119; // x0 bool v120; // w2 __int64 v121; // x0 float v122; // s0 __int64 v123; // x25 void (__fastcall *v124)(__int64, __int64 *); // x28 bool v125; // w2 __int64 v126; // x0 __int64 v127; // x23 void (__fastcall *v128)(__int64, float); // x25 float v129; // s0 __int64 v130; // x23 void (__fastcall *v131)(__int64, float); // x25 float v132; // s0 __int64 v133; // x23 void (__fastcall *v134)(__int64, __int64 *); // x25 __int64 v135; // x23 void (__fastcall *v136)(__int64, float); // x25 float v137; // s0 __int64 v138; // x23 void (__fastcall *v139)(__int64, float); // x25 float v140; // s0 __int64 v141; // x23 void (__fastcall *v142)(__int64, float); // x25 float v143; // s0 __int64 v144; // x23 void (__fastcall *v145)(__int64, float); // x25 float v146; // s0 __int64 v147; // x23 void (__fastcall *v148)(__int64, float); // x25 float v149; // s0 __int64 v150; // x2 __int64 v151; // x0 void (__fastcall *v152)(__int64, __int64 *); // x2 __int64 v153; // x0 void (__fastcall *v154)(__int64, __int64 *); // x2 __int64 v155; // x0 void (__fastcall *v156)(__int64, __int64 *); // x2 __int64 v157; // x0 void (__fastcall *v158)(__int64, __int64 *); // x2 bool v159; // w2 int j; // w25 cocos2d::CCObject *v161; // x23 void (__fastcall *v162)(cocos2d::CCObject *, __int64 *); // x2 void (__fastcall *v163)(cocos2d::CCObject *, __int64 *); // x2 __int64 v164; // x0 bool v165; // w2 __int64 v166; // x0 float v167; // s0 __int64 v168; // x1 int v169; // w2 __int64 v170; // x0 cocos2d::CCString *v171; // x0 size_t v172; // x0 cocos2d::CCSprite *v173; // x0 __int64 v174; // x0 const char *v175; // x1 __int64 v176; // x0 __int64 v177; // x21 void (__fastcall *v178)(__int64, __int64 *); // x28 const char *v179; // x1 __int64 v180; // x21 void (__fastcall *v181)(__int64, __int64 *); // x25 cocos2d::CCSprite *v182; // x0 __int64 v183; // x0 cocos2d::CCString *v184; // x0 size_t v185; // x0 cocos2d::CCSprite *v186; // x0 __int64 v187; // x0 __int64 v188; // x3 GameManager *v189; // x0 GameManager *v190; // x0 GameManager *v191; // x0 GameManager *v192; // x0 GameManager *v193; // x0 GameManager *v194; // x0 char v195; // w0 __int64 v196; // x3 __int64 v197; // x2 unsigned __int64 v198; // x1 char *v200; // [xsp+88h] [xbp+88h] char *v201; // [xsp+88h] [xbp+88h] char *v202; // [xsp+88h] [xbp+88h] char *v203; // [xsp+88h] [xbp+88h] char *v204; // [xsp+88h] [xbp+88h] char *v205; // [xsp+88h] [xbp+88h] char *v206; // [xsp+88h] [xbp+88h] char *v207; // [xsp+88h] [xbp+88h] _BYTE v208[8]; // [xsp+90h] [xbp+90h] BYREF __int64 v209; // [xsp+98h] [xbp+98h] BYREF int v210; // [xsp+A0h] [xbp+A0h] float v211; // [xsp+A4h] [xbp+A4h] char *v212[2]; // [xsp+A8h] [xbp+A8h] BYREF char *v213; // [xsp+B8h] [xbp+B8h] char *v214[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v215; // [xsp+D0h] [xbp+D0h] __int64 v216[2]; // [xsp+D8h] [xbp+D8h] BYREF void *v217; // [xsp+E8h] [xbp+E8h] char *v218[2]; // [xsp+F0h] [xbp+F0h] BYREF void *v219; // [xsp+100h] [xbp+100h] char *v220[2]; // [xsp+108h] [xbp+108h] BYREF void *v221; // [xsp+118h] [xbp+118h] GameManager *v222[2]; // [xsp+120h] [xbp+120h] BYREF void *v223; // [xsp+130h] [xbp+130h] char *v224[2]; // [xsp+138h] [xbp+138h] BYREF void *v225; // [xsp+148h] [xbp+148h] char *v226[2]; // [xsp+150h] [xbp+150h] BYREF void *v227; // [xsp+160h] [xbp+160h] v8 = a6; if ( a2 <= 0 ) { v9 = 1; } else if ( a2 > 485 ) { v9 = 485; } else { v9 = a2; } if ( a3 <= 0 ) { v10 = 1; } else if ( a3 > 169 ) { v10 = 169; } else { v10 = a3; } v11 = (GameManager *)GameManager::sharedState(_stack_chk_guard); IconRequestID = (GameManager *)GameManager::getIconRequestID(v11); *((_DWORD *)this + 743) = (_DWORD)IconRequestID; v13 = (__int64 **)GameManager::sharedState(IconRequestID); Icon = GameManager::loadIcon(v13, v9, 0, *((_DWORD *)this + 743)); v15 = (__int64 **)GameManager::sharedState(Icon); GameManager::loadIcon(v15, v10, 1, *((_DWORD *)this + 743)); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_001.png", (const char *)v9); CString = (const char *)cocos2d::CCString::getCString(v16); v212[0] = nullptr; v200 = (char *)CString; v212[1] = nullptr; v213 = nullptr; v18 = strlen(CString); std::string::__init((__int64 *)v212, v200, v18); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_2_001.png", (const char *)v9); v201 = (char *)cocos2d::CCString::getCString(v19); v214[0] = nullptr; v214[1] = nullptr; v215 = nullptr; v20 = strlen(v201); std::string::__init((__int64 *)v214, v201, v20); v21 = (char *)v212 + 1; if ( ((__int64)v212[0] & 1) != 0 ) v21 = v213; v22 = GameObject::init(this, v21); v23 = v22; if ( v22 ) { *((_BYTE *)this + 313) = 0; *((_BYTE *)this + 559) = (unsigned __int8)&dword_0 + 1; v25 = cocos2d::CCNode::create((cocos2d::CCNode *)((char *)&dword_0 + 1)); *((_QWORD *)this + 170) = v25; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v25 + 320LL))(v25, &unk_155C650); (*(void (__fastcall **)(PlayerObject *, _QWORD))(*(_QWORD *)this + 456LL))(this, *((_QWORD *)this + 170)); v26 = std::string::assign((__int64 *)this + 368, "run"); v27 = (GameManager *)GameManager::sharedState((GameManager *)v26); GameVariable = (GameManager *)GameManager::getGameVariable(v27, "0096"); *((_BYTE *)this + 2042) = (_BYTE)GameVariable; v29 = (GameManager *)GameManager::sharedState(GameVariable); v30 = (GameManager *)GameManager::getGameVariable(v29, "0100"); *((_BYTE *)this + 2043) = (_BYTE)v30; v31 = (GameManager *)GameManager::sharedState(v30); v32 = (GameStatsManager *)GameManager::getGameVariable(v31, "0123"); *((_BYTE *)this + 2968) = (_BYTE)v32; v33 = GameStatsManager::sharedState(v32); isItemEnabled = (GameStatsManager *)GameStatsManager::isItemEnabled(v33, 12, 18); *((_BYTE *)this + 3049) = (_BYTE)isItemEnabled; v35 = GameStatsManager::sharedState(isItemEnabled); v36 = (GameStatsManager *)GameStatsManager::isItemEnabled(v35, 12, 19); *((_BYTE *)this + 3050) = (_BYTE)v36; v37 = GameStatsManager::sharedState(v36); *((_BYTE *)this + 3051) = GameStatsManager::isItemEnabled(v37, 12, 20); *((_DWORD *)this + 390) = v9; *((_DWORD *)this + 447) = 0; *((_DWORD *)this + 619) = 1063675494; v38 = rand(); *((_QWORD *)this + 377) = a4; *((_QWORD *)this + 378) = a5; *((_BYTE *)this + 1972) = v8; *((_BYTE *)this + 1973) = v8 ^ 1; *((float *)this + 725) = (float)((float)((float)v38 * 4.6566e-10) * 10.0) + 5.0; v39 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)(v8 ^ 1u)); *((_QWORD *)this + 318) = v39; cocos2d::CCObject::retain(v39); (*(void (__fastcall **)(PlayerObject *, void *))(*(_QWORD *)this + 1136LL))(this, &unk_155C640); v40 = (char *)v212 + 1; if ( ((__int64)v212[0] & 1) != 0 ) v40 = v213; v41 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)v40, (const char *)LOBYTE(v212[0])); v42 = *((_QWORD *)this + 170); *((_QWORD *)this + 225) = v41; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v42 + 464LL))(v42, v41, 1); v43 = (cocos2d::CCSprite *)((char *)v214 + 1); if ( ((__int64)v214[0] & 1) != 0 ) v43 = (cocos2d::CCSprite *)v215; v44 = cocos2d::CCSprite::createWithSpriteFrameName(v43, (const char *)LOBYTE(v214[0])); v45 = *((_QWORD *)this + 225); *((_QWORD *)this + 226) = v44; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v45 + 464LL))(v45, v44, 0xFFFFFFFFLL); v46 = *((_QWORD *)this + 226); v47 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v46 + 184LL); cocos2d::CCNode::convertToNodeSpace( &v209, *((cocos2d::CCNode **)this + 225), (const cocos2d::CCPoint *)&unk_155C638); v47(v46, &v209); v48 = (cocos2d::CCSprite *)((char *)v214 + 1); if ( ((__int64)v214[0] & 1) != 0 ) v48 = (cocos2d::CCSprite *)v215; v49 = cocos2d::CCSprite::createWithSpriteFrameName(v48, (const char *)LOBYTE(v214[0])); v50 = *((_QWORD *)this + 225); *((_QWORD *)this + 227) = v49; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v50 + 464LL))(v50, v49, 2); v51 = *((_QWORD *)this + 227); v52 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v51 + 184LL); cocos2d::CCNode::convertToNodeSpace( &v209, *((cocos2d::CCNode **)this + 225), (const cocos2d::CCPoint *)&unk_155C638); v52(v51, &v209); v53 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_extra_001.png", (const char *)v9); v202 = (char *)cocos2d::CCString::getCString(v53); v216[0] = 0; v216[1] = 0; v217 = nullptr; v54 = strlen(v202); std::string::__init(v216, v202, v54); PlayerObject::updatePlayerSpriteExtra((__int64)this, (__int64)v216); if ( (v216[0] & 1) != 0 ) operator delete(v217); v55 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"ship_%02d_001.png", (const char *)v10); v203 = (char *)cocos2d::CCString::getCString(v55); v218[0] = nullptr; v218[1] = nullptr; v219 = nullptr; v56 = strlen(v203); std::string::__init((__int64 *)v218, v203, v56); v57 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"ship_%02d_2_001.png", (const char *)v10); v204 = (char *)cocos2d::CCString::getCString(v57); v220[0] = nullptr; v220[1] = nullptr; v221 = nullptr; v58 = strlen(v204); std::string::__init((__int64 *)v220, v204, v58); v59 = (cocos2d::CCSprite *)((char *)v218 + 1); if ( ((__int64)v218[0] & 1) != 0 ) v59 = (cocos2d::CCSprite *)v219; v60 = cocos2d::CCSprite::createWithSpriteFrameName(v59, (const char *)LOBYTE(v218[0])); v61 = *((_QWORD *)this + 170); *((_QWORD *)this + 229) = v60; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v61 + 464LL))(v61, v60, 2); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 229) + 344LL))(*((_QWORD *)this + 229), 0); v62 = (cocos2d::CCSprite *)((char *)v220 + 1); if ( ((__int64)v220[0] & 1) != 0 ) v62 = (cocos2d::CCSprite *)v221; v63 = cocos2d::CCSprite::createWithSpriteFrameName(v62, (const char *)LOBYTE(v220[0])); v64 = *((_QWORD *)this + 229); *((_QWORD *)this + 230) = v63; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v64 + 464LL))(v64, v63, 0xFFFFFFFFLL); v65 = *((_QWORD *)this + 230); v66 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 184LL); cocos2d::CCNode::convertToNodeSpace( &v209, *((cocos2d::CCNode **)this + 229), (const cocos2d::CCPoint *)&unk_155C638); v66(v65, &v209); v67 = (cocos2d::CCSprite *)((char *)v220 + 1); if ( ((__int64)v220[0] & 1) != 0 ) v67 = (cocos2d::CCSprite *)v221; v68 = cocos2d::CCSprite::createWithSpriteFrameName(v67, (const char *)LOBYTE(v220[0])); v69 = *((_QWORD *)this + 229); *((_QWORD *)this + 231) = v68; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v69 + 464LL))(v69, v68, 4294967294LL); v70 = *((_QWORD *)this + 231); v71 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v70 + 184LL); cocos2d::CCNode::convertToNodeSpace( &v209, *((cocos2d::CCNode **)this + 229), (const cocos2d::CCPoint *)&unk_155C638); v71(v70, &v209); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 231) + 344LL))(*((_QWORD *)this + 231), 0); v72 = (cocos2d::CCSprite *)((char *)v220 + 1); if ( ((__int64)v220[0] & 1) != 0 ) v72 = (cocos2d::CCSprite *)v221; v73 = cocos2d::CCSprite::createWithSpriteFrameName(v72, (const char *)LOBYTE(v220[0])); v74 = *((_QWORD *)this + 229); *((_QWORD *)this + 232) = v73; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v74 + 464LL))(v74, v73, 1); v75 = *((_QWORD *)this + 232); v76 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v75 + 184LL); cocos2d::CCNode::convertToNodeSpace( &v209, *((cocos2d::CCNode **)this + 229), (const cocos2d::CCPoint *)&unk_155C638); v76(v75, &v209); v77 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"ship_%02d_extra_001.png", (const char *)v10); v205 = (char *)cocos2d::CCString::getCString(v77); v222[0] = nullptr; v222[1] = nullptr; v223 = nullptr; v78 = strlen(v205); std::string::__init((__int64 *)v222, v205, v78); PlayerObject::updateShipSpriteExtra((__int64)this, (__int64)v222); v79 = (GameManager *)LOBYTE(v222[0]); if ( ((__int64)v222[0] & 1) != 0 ) operator delete(v223); v80 = GameManager::sharedState(v79); Robot = (PlayerFireBoostSprite *)PlayerObject::createRobot(this, *(_DWORD *)(v80 + 776) - *(_DWORD *)(v80 + 780)); v82 = PlayerFireBoostSprite::create(Robot); v83 = *((_QWORD *)this + 170); *((_QWORD *)this + 375) = v82; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v83 + 464LL))(v83, v82, 0xFFFFFFFFLL); v84 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 375) + 344LL))( *((_QWORD *)this + 375), 0); v85 = GameManager::sharedState(v84); Spider = PlayerObject::createSpider(this, *(_DWORD *)(v85 + 788) - *(_DWORD *)(v85 + 792)); v87 = 1; for ( i = 0; ; ++i ) { v89 = PlayerFireBoostSprite::create((PlayerFireBoostSprite *)Spider); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 170) + 464LL))( *((_QWORD *)this + 170), v89, 0xFFFFFFFFLL); if ( i ) v90 = 1060655596; else v90 = 1064682128; v91 = *(_QWORD *)v89; *(_DWORD *)(v89 + 596) = v90; Spider = (*(__int64 (__fastcall **)(__int64, _QWORD))(v91 + 344))(v89, 0); if ( i ) { Spider = (unsigned int)i; if ( (_DWORD)i == 1 ) { *((_QWORD *)this + 235) = v89; } else { *((_QWORD *)this + 236) = v89; if ( v87 == 3 ) { (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 234) + 360LL))(*((_QWORD *)this + 234), 90.0); v92 = *((_QWORD *)this + 234); v93 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v92 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v209, -14.0, 0.0); v93(v92, &v209); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 235) + 360LL))(*((_QWORD *)this + 235), 45.0); v94 = *((_QWORD *)this + 235); v95 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v94 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v209, -9.5, -10.0); v95(v94, &v209); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 236) + 360LL))(*((_QWORD *)this + 236), 135.0); v96 = *((_QWORD *)this + 236); v97 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v96 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v209, -9.5, 10.0); v97(v96, &v209); PlayerObject::setYVelocity((__int64)this, 0.0); *((_BYTE *)this + 2516) = 0; *((_BYTE *)this + 2425) = 0; *((float *)this + 618) = 1.0; *((_BYTE *)this + 2500) = 0; *((_BYTE *)this + 2424) = 0; *((float *)this + 660) = 30.0; updated = PlayerObject::updateTimeMod(this, 0.9, 0); *((_QWORD *)this + 265) = 0; v99 = (cocos2d::CCObject *)cocos2d::CCNode::create(updated); *((_QWORD *)this + 180) = v99; v100 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v99); v101 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v100); *((_QWORD *)this + 181) = v101; v102 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v101); v103 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v102); *((_QWORD *)this + 182) = v103; v104 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v103); v105 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v104); *((_QWORD *)this + 183) = v105; v106 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v105); v107 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v106); *((_QWORD *)this + 184) = v107; v108 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v107); v109 = (cocos2d::CCObject *)cocos2d::CCArray::create(v108); *((_QWORD *)this + 210) = v109; v110 = (GJActionManager *)cocos2d::CCObject::retain(v109); v111 = (cocos2d::CCObject *)GJActionManager::create(v110); *((_QWORD *)this + 379) = v111; cocos2d::CCObject::retain(v111); v113 = cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"dragEffect.plist", nullptr, v112); *((_QWORD *)this + 270) = v113; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v113 + 1568LL))(v113, 1); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 270)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 270)); *((_BYTE *)this + 1974) = 0; v115 = cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"dashEffect.plist", nullptr, v114); *((_QWORD *)this + 276) = v115; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v115 + 1568LL))(v115, 1); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 276)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 276)); v117 = cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"burstEffect.plist", nullptr, v116); *((_QWORD *)this + 274) = v117; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v117 + 1568LL))(v117, 1); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 274)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 274)); v119 = cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"burstEffect2.plist", nullptr, v118); *((_QWORD *)this + 275) = v119; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v119 + 1568LL))(v119, 1); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 275)); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 275)); v121 = cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"dragEffect.plist", nullptr, v120); *((_QWORD *)this + 271) = v121; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v121 + 1568LL))(v121, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 271)); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 271)); v122 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 271) + 968LL))(*((_QWORD *)this + 271)); v123 = *((_QWORD *)this + 271); *((float *)this + 488) = v122; v124 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v123 + 960LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v209, 0.0, 2.0); v124(v123, &v209); v126 = cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"dragEffect.plist", nullptr, v125); *((_QWORD *)this + 272) = v126; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v126 + 1568LL))(v126, 1); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 272)); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 272)); v127 = *((_QWORD *)this + 271); v128 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v127 + 1064LL); v129 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v127 + 1056LL))(v127); v128(v127, v129 * 0.2); v130 = *((_QWORD *)this + 271); v131 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v130 + 1080LL); v132 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v130 + 1072LL))(v130); v131(v130, v132 * 0.2); v133 = *((_QWORD *)this + 272); v134 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v133 + 960LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v209, 0.0, 2.0); v134(v133, &v209); v135 = *((_QWORD *)this + 272); v136 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v135 + 1064LL); v137 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v135 + 1056LL))(v135); v136(v135, v137 + v137); v138 = *((_QWORD *)this + 272); v139 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v138 + 1080LL); v140 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v138 + 1072LL))(v138); v139(v138, v140 + v140); v141 = *((_QWORD *)this + 272); v142 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v141 + 1024LL); v143 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v141 + 1016LL))(v141); v142(v141, v143 + v143); v144 = *((_QWORD *)this + 272); v145 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v144 + 1296LL); v146 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v144 + 1288LL))(v144); v145(v144, v146 * 1.5); v147 = *((_QWORD *)this + 272); v148 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v147 + 1312LL); v149 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v147 + 1304LL))(v147); v148(v147, v149 * 1.5); v150 = *((_QWORD *)this + 271); *((_BYTE *)this + 1975) = 0; v151 = v150; v152 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v150 + 1360LL); v209 = COERCE_UNSIGNED_INT(1.0) | 0x3EC8C8C900000000LL; v210 = 0; v211 = 1.0; v152(v151, &v209); v153 = *((_QWORD *)this + 271); v154 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v153 + 1392LL); v209 = COERCE_UNSIGNED_INT(1.0); v210 = 0; v211 = 1.0; v154(v153, &v209); v155 = *((_QWORD *)this + 272); v156 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v155 + 1360LL); v209 = COERCE_UNSIGNED_INT(1.0) | 0x3F3EBEBF00000000LL; v210 = 0; v211 = 1.0; v156(v155, &v209); v157 = *((_QWORD *)this + 272); v158 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v157 + 1392LL); v209 = COERCE_UNSIGNED_INT(1.0); v210 = 0; v211 = 1.0; v158(v157, &v209); for ( j = 1; ; ++j ) { v161 = (cocos2d::CCObject *)cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"swingBurstEffect.plist", nullptr, v159); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v161 + 1568LL))(v161, 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), v161); cocos2d::CCParticleSystem::stopSystem(v161); v162 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v161 + 1360LL); v209 = COERCE_UNSIGNED_INT(1.0) | 0x3EC8C8C900000000LL; v210 = 0; v211 = 1.0; v162(v161, &v209); v163 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v161 + 1392LL); v209 = COERCE_UNSIGNED_INT(1.0); v210 = 0; v211 = 1.0; v163(v161, &v209); if ( j == 1 ) { *((_QWORD *)this + 277) = v161; } else { *((_QWORD *)this + 278) = v161; if ( j == 2 ) { v164 = cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"shipDragEffect.plist", nullptr, v159); *((_QWORD *)this + 273) = v164; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v164 + 1568LL))(v164, 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 273)); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 273)); v166 = cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"landEffect.plist", nullptr, v165); *((_QWORD *)this + 280) = v166; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v166 + 1568LL))(v166, 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 280)); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 280)); v167 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 280) + 1000LL))(*((_QWORD *)this + 280)); v168 = *((_QWORD *)this + 280); *((float *)this + 564) = v167; v169 = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v168 + 1040LL))(v168) + 4); *((_DWORD *)this + 565) = v169; v170 = cocos2d::CCParticleSystemQuad::create( (cocos2d::CCParticleSystemQuad *)"landEffect.plist", nullptr, v169); *((_QWORD *)this + 281) = v170; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v170 + 1568LL))(v170, 2); cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 210), *((cocos2d::CCObject **)this + 281)); cocos2d::CCParticleSystem::stopSystem(*((cocos2d::CCParticleSystem **)this + 281)); PlayerObject::setupStreak(this); v171 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_glow_001.png", (const char *)v9); v206 = (char *)cocos2d::CCString::getCString(v171); v224[0] = nullptr; v224[1] = nullptr; v225 = nullptr; v172 = strlen(v206); v173 = (cocos2d::CCSprite *)std::string::__init((__int64 *)v224, v206, v172); v174 = cocos2d::CCSprite::create(v173); *((_QWORD *)this + 237) = v174; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v174 + 1136LL))(v174, &unk_155C640); *(_BYTE *)(*((_QWORD *)this + 237) + 559LL) = 1; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 170) + 464LL))( *((_QWORD *)this + 170), *((_QWORD *)this + 237), 0xFFFFFFFFLL); v176 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"playerDash2_001.png", v175); *((_QWORD *)this + 204) = v176; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v176 + 1080LL))(v176, 0x100000302LL); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 237) + 456LL))( *((_QWORD *)this + 237), *((_QWORD *)this + 204)); v177 = *((_QWORD *)this + 204); v178 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v177 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v208, 0.0, 0.0); cocos2d::CCNode::convertToNodeSpace(&v209, this, (const cocos2d::CCPoint *)v208); v178(v177, &v209); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 204) + 344LL))( *((_QWORD *)this + 204), 0); v180 = cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"playerDash2_outline_001.png", v179); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 204) + 464LL))( *((_QWORD *)this + 204), v180, 1); v181 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v180 + 184LL); cocos2d::CCNode::convertToNodeSpace( &v209, *((cocos2d::CCNode **)this + 204), (const cocos2d::CCPoint *)&unk_155C638); v181(v180, &v209); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v180 + 912LL))(v180, 4294967190LL); v182 = (cocos2d::CCSprite *)((char *)v224 + 1); if ( ((__int64)v224[0] & 1) != 0 ) v182 = (cocos2d::CCSprite *)v225; v183 = cocos2d::CCSprite::createWithSpriteFrameName(v182, (const char *)LOBYTE(v224[0])); *((_QWORD *)this + 228) = v183; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v183 + 344LL))(v183, 0); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)this + 237) + 464LL))( *((_QWORD *)this + 237), *((_QWORD *)this + 228), 2); v184 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"ship_%02d_glow_001.png", (const char *)v10); v207 = (char *)cocos2d::CCString::getCString(v184); v226[0] = nullptr; v226[1] = nullptr; v227 = nullptr; v185 = strlen(v207); std::string::__init((__int64 *)v226, v207, v185); v186 = (cocos2d::CCSprite *)((char *)v226 + 1); if ( ((__int64)v226[0] & 1) != 0 ) v186 = (cocos2d::CCSprite *)v227; v187 = cocos2d::CCSprite::createWithSpriteFrameName(v186, (const char *)LOBYTE(v226[0])); v188 = *((_QWORD *)this + 237); *((_QWORD *)this + 233) = v187; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v188 + 464LL))( v188, v187, 4294967293LL); v189 = (GameManager *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 233) + 344LL))( *((_QWORD *)this + 233), 0); *((float *)this + 191) = 30.0; *((float *)this + 192) = 30.0; *((float *)this + 660) = 30.0; v190 = (GameManager *)GameManager::sharedState(v189); v191 = (GameManager *)GameManager::getGameVariable(v190, "0060"); *((_BYTE *)this + 2648) = (_BYTE)v191; v192 = (GameManager *)GameManager::sharedState(v191); v193 = (GameManager *)GameManager::getGameVariable(v192, "0061"); *((_BYTE *)this + 2649) = (_BYTE)v193; v194 = (GameManager *)GameManager::sharedState(v193); v195 = GameManager::getGameVariable(v194, "0062"); v196 = *((_QWORD *)this + 332); v197 = *((_QWORD *)this + 333); *((_BYTE *)this + 2650) = v195; v198 = (v197 - v196) >> 2; LODWORD(v209) = 0; if ( v198 <= 0xC7 ) { std::vector::__append((__int64)this + 2656, 200 - v198, &v209); } else if ( v198 != 200 && v197 != v196 + 800 ) { *((_QWORD *)this + 333) = v197 + 4 * ~((unsigned __int64)(v197 - 804 - v196) >> 2); } PlayerObject::updateCheckpointMode((__int64)this, 0); if ( ((__int64)v226[0] & 1) != 0 ) operator delete(v227); if ( ((__int64)v224[0] & 1) != 0 ) operator delete(v225); if ( ((__int64)v220[0] & 1) != 0 ) operator delete(v221); if ( ((__int64)v218[0] & 1) != 0 ) operator delete(v219); goto LABEL_12; } } } } } } else { *((_QWORD *)this + 234) = v89; } ++v87; } } LABEL_12: if ( ((__int64)v214[0] & 1) != 0 ) operator delete(v215); if ( ((__int64)v212[0] & 1) != 0 ) operator delete(v213); return v23; }
GD Web Decomp Icon

GD Web Decomp

Raw Source