// // GJBaseGameLayer::update from 0x89d808 to 0x89e930 (4392 bytes) // // 4 xrefs: // > @ 0x67980 // > @ 0x1148548 // > @ 0x1154db8 // > @ 0x1190238 // // 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 GJBaseGameLayer::update(GJBaseGameLayer *a1, float a2) { float *v3; // x20 double v5; // d0 double m_timeWarp; // d8 double v7; // d8 GJEffectManager *m_effectManager; // x0 float v9; // s9 double v10; // d1 cocos2d::JniHelper *v11; // x0 double v12; // d0 double ModifiedDelta; // d0 PlayerObject *m_player1; // x21 PlayerObject *m_player2; // x0 double v16; // d13 PlayerObject *v17; // x21 float v18; // s1 double v19; // d0 float v20; // s0 float v21; // s9 double v22; // d0 int v23; // w0 cocos2d::CCDirector *v24; // x0 int m_areaMovedCount; // w13 int v26; // w12 float v27; // s9 int v28; // w10 float v29; // s8 int v30; // w9 float v31; // s7 int v32; // w8 float v33; // s6 int v34; // w7 float v35; // s5 int v36; // w6 float v37; // s4 int v38; // w5 float v39; // s3 int v40; // w4 int v41; // w3 float v42; // s2 int v43; // w2 float m_areaMovedCountDisplay; // s22 int v45; // w1 float v46; // s0 std::__detail::_Hash_node_base *M_nxt; // x0 std::__detail::_Hash_node_base *v48; // x22 int v49; // w22 double v50; // d14 double v51; // d10 double v52; // d12 double v53; // d11 float v54; // s13 float v55; // s11 bool v56; // w25 bool v57; // w24 double m_totalTime; // d0 int v59; // w1 double m_unkDouble3; // d1 double v61; // d0 int v62; // w0 int m_tickIndex; // w1 int v64; // w1 GJBaseGameLayer_vtbl *v65; // x2 PlayerObject *v66; // x0 std::_rb_tree_base *m_parent; // x27 std::_rb_tree_base *v68; // x0 std::_Rb_tree_node_base::_Base_ptr v69; // x23 std::_Rb_tree_node_base::_Base_ptr v70; // x0 float v71; // s0 GJEffectManager *v72; // x0 float m_timeModRelated; // s0 float v74; // s0 std::_Rb_tree_node_base::_Base_ptr v75; // x23 std::_Rb_tree_node_base::_Base_ptr v76; // x0 _BOOL4 m_isDualMode; // w23 float y; // s15 const cocos2d::CCPoint *LastPosition; // x0 PlayerObject *v80; // x1 long double v81; // q0 float v82; // s15 float v83; // s8 const cocos2d::CCPoint *v84; // x0 GJEffectManager *v85; // x28 float v86; // s8 PlayerObject *v87; // x2 PlayerObject *v88; // x0 float (__fastcall *getRotation)(cocos2d::CCNode *__hidden); // x2 float v90; // s0 GJEffectManager *v91; // x27 PlayerObject *v92; // x0 float (__fastcall *v93)(cocos2d::CCNode *__hidden); // x2 float v94; // s0 unsigned int v95; // w1 float v96; // s0 float v97; // s0 char m_ignoreDamage; // w24 float v99; // s0 PlayerObject *v100; // x2 PlayerObject *v101; // x0 double m_maybeReverseAcceleration; // x1 float v103; // s8 PlayerObject *v104; // x1 float v105; // s0 float v106; // s0 PlayerObject *v107; // x24 float v108; // s0 PlayerObject *v109; // x23 PlayerObject *v110; // x23 const cocos2d::CCPoint *v111; // x0 float v112; // s0 float v113; // s1 float MaxPortalY; // s0 GJBaseGameLayer_vtbl *v115; // x1 float v116; // s0 float v117; // s1 int v118; // w0 float v119; // s0 double v120; // d0 float v121; // s0 float v122; // s0 PlayerObject *v123; // x23 const cocos2d::CCPoint *v124; // x0 float v125; // s0 float v126; // s1 float v127; // s0 PlayerObject *v128; // x1 float v129; // s0 float v130; // s0 PlayerObject *v131; // x22 int v132; // w25 float m_cameraShakeFactor; // s0 float v134; // s0 float v135; // s8 float v136; // s0 std::__detail::_Hash_node_base *v137; // x21 FMODAudioEngine *v138; // x0 std::_Hashtable>, std::allocator>>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::size_type M_bucket_count; // x4 std::_Hashtable>, std::allocator>>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type *M_buckets; // x5 unsigned __int64 v141; // x3 std::_Hashtable>, std::allocator>>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type *v142; // x7 _QWORD *i; // x1 std::__detail::_Hash_node_base *v144; // x2 unsigned __int64 v145; // x4 std::unordered_map> *p_m_songTriggerStateVectors; // x23 std::__detail::_Hash_node_base *v147; // x0 std::__detail::_Hash_node_base *v148; // x24 std::__detail::_Hash_node_base *v149; // x0 unsigned __int64 v150; // x4 GJBaseGameLayer *v151; // x0 const cocos2d::CCPoint *v152; // x0 float v153; // s0 float v154; // s1 float m_levelFlipping; // s8 cocos2d::CCDirector *v156; // x0 float x; // s9 float v158; // s8 const cocos2d::CCPoint *v159; // x26 float v160; // s0 float v161; // s1 const cocos2d::CCPoint *v162; // x26 float v163; // s0 float v164; // s1 void (__fastcall *v165)(PlayerObject *__hidden, const cocos2d::CCPoint *); // x23 void (__fastcall *setPosition)(PlayerObject *__hidden, const cocos2d::CCPoint *); // x23 PlayerObject *v167; // x22 const cocos2d::CCPoint *v168; // x0 float v169; // s0 float v170; // s1 int v171; // [xsp+ACh] [xbp+ACh] double v172; // [xsp+B0h] [xbp+B0h] double v173; // [xsp+B8h] [xbp+B8h] double v174; // [xsp+C0h] [xbp+C0h] int v175; // [xsp+D0h] [xbp+D0h] float v176; // [xsp+D4h] [xbp+D4h] double v177; // [xsp+D8h] [xbp+D8h] int v178; // [xsp+E0h] [xbp+E0h] float v179; // [xsp+E4h] [xbp+E4h] double v180; // [xsp+E8h] [xbp+E8h] double v181; // [xsp+F8h] [xbp+F8h] int v182; // [xsp+108h] [xbp+108h] char v183; // [xsp+10Ch] [xbp+10Ch] cocos2d::CCPoint v184; // [xsp+118h] [xbp+118h] BYREF cocos2d::CCPoint v185; // [xsp+120h] [xbp+120h] BYREF cocos2d::CCPoint v186; // [xsp+128h] [xbp+128h] BYREF cocos2d::CCPoint v187; // [xsp+130h] [xbp+130h] BYREF cocos2d::CCSize WinSize; // 0:kr08_8.8 v3 = &a1->m_varianceValues.__elems_[1975]; cocos2d::JniHelper::getPlatformTimestamp(_stack_chk_guard); v172 = v5; GJBaseGameLayer::tryResumeAudio(a1); if ( !*((_BYTE *)v3 + 696) || (a1->applyTimeWarp(a1, a1->m_gameState.m_timeWarp), !*((_BYTE *)v3 + 696)) ) { m_timeWarp = a1->m_gameState.m_timeWarp; v180 = a2; a1->m_extraDelta = 0.0; v7 = a2 / m_timeWarp; LABEL_3: m_effectManager = a1->m_effectManager; v9 = v180; v10 = a1->m_gameState.m_totalTime + v180; a1->m_gameState.m_unkDouble3 = a1->m_gameState.m_unkDouble3 + v7; a1->m_gameState.m_totalTime = v10; GJEffectManager::updateEffects(m_effectManager, v9); PlayerObject::updateEffects(a1->m_player1, v9); PlayerObject::updateEffects(a1->m_player2, v9); GJBaseGameLayer::updateGradientLayers(a1); GJBaseGameLayer::updateShaderLayer(a1, v9); a1->postUpdate(a1, v9); GJBaseGameLayer::updateGuideArt(a1); GJBaseGameLayer::updateAudioVisualizer(a1); cocos2d::JniHelper::getPlatformTimestamp(v11); a1->m_timestamp = v12; return; } ModifiedDelta = GJBaseGameLayer::getModifiedDelta(a1, a2); v183 = *((_BYTE *)v3 + 696); v180 = ModifiedDelta; v7 = ModifiedDelta / a1->m_gameState.m_timeWarp; if ( !v183 || a1->m_resumeTimer > 0 ) goto LABEL_3; if ( ModifiedDelta <= 0.0 ) return; m_player1 = a1->m_player1; m_player2 = a1->m_player2; m_player1->m_maybeIsColliding = 0; m_player2->m_maybeIsColliding = 0; v16 = ModifiedDelta * 60.0; if ( !m_player1->m_isLocked ) { setPosition = m_player1->setPosition; cocos2d::CCPoint::CCPoint(&v187, &m_player1->m_position); setPosition(m_player1, &v187); } if ( a1->m_gameState.m_isDualMode ) { v17 = a1->m_player2; if ( !v17->m_isLocked ) { v165 = v17->setPosition; cocos2d::CCPoint::CCPoint(&v187, &v17->m_position); v165(v17, &v187); } } v18 = a1->m_gameState.m_timeWarp; if ( v18 <= 1.0 ) v19 = v18; else v19 = 1.0; v20 = v16 / v19 * 4.0; v21 = roundf(v20); if ( v21 <= 1.0 ) { v178 = 1; v22 = 1.0; } else { v22 = (double)(int)v21; v178 = (int)v21; } v23 = *((unsigned __int8 *)v3 + 658); v179 = a1->m_gameState.m_timeWarp; *((_BYTE *)v3 + 248) = 0; v181 = v180 / v22; v174 = v16 / v22; v177 = v7 / v22; v173 = v180 / v22 * 60.0; if ( !v23 && *((_BYTE *)v3 + 697) ) { v24 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v24); v179 = a1->m_gameState.m_timeWarp; a1->m_gameState.m_cameraStepDiff.x = 15.0 - (float)(75.0 - (float)(v187.x * 0.5)); } m_areaMovedCount = a1->m_areaMovedCount; v26 = *((_DWORD *)v3 + 442); v27 = (float)*((int *)v3 + 443); v28 = *((_DWORD *)v3 + 454); v29 = (float)*((int *)v3 + 444); v30 = *((_DWORD *)v3 + 455); v31 = (float)*((int *)v3 + 445); v32 = *((_DWORD *)v3 + 456); v33 = (float)*((int *)v3 + 446); v34 = *((_DWORD *)v3 + 457); v35 = (float)*((int *)v3 + 447); v36 = *((_DWORD *)v3 + 458); v37 = (float)*((int *)v3 + 448); v38 = *((_DWORD *)v3 + 459); v39 = (float)*((int *)v3 + 449); v40 = *((_DWORD *)v3 + 460); v41 = *((_DWORD *)v3 + 461); v42 = (float)*((int *)v3 + 450); v43 = *((_DWORD *)v3 + 462); m_areaMovedCountDisplay = (float)a1->m_areaMovedCountDisplay; *((_BYTE *)v3 + 697) = 0; a1->m_areaMovedCountDisplay = (int)(float)((float)((float)m_areaMovedCount * 0.1) + (float)(m_areaMovedCountDisplay * 0.9)); *((_DWORD *)v3 + 460) = (int)(float)((float)(v37 * 0.1) + (float)((float)v40 * 0.9)); *((_DWORD *)v3 + 461) = (int)(float)((float)(v39 * 0.1) + (float)((float)v41 * 0.9)); *((_DWORD *)v3 + 459) = (int)(float)((float)(v35 * 0.1) + (float)((float)v38 * 0.9)); *((_DWORD *)v3 + 454) = (int)(float)((float)((float)v26 * 0.1) + (float)((float)v28 * 0.9)); *((_DWORD *)v3 + 455) = (int)(float)((float)(v27 * 0.1) + (float)((float)v30 * 0.9)); *((_DWORD *)v3 + 456) = (int)(float)((float)(v29 * 0.1) + (float)((float)v32 * 0.9)); *((_DWORD *)v3 + 457) = (int)(float)((float)(v31 * 0.1) + (float)((float)v34 * 0.9)); *((_DWORD *)v3 + 458) = (int)(float)((float)(v33 * 0.1) + (float)((float)v36 * 0.9)); *((_DWORD *)v3 + 462) = (int)(float)((float)(v42 * 0.1) + (float)((float)v43 * 0.9)); v45 = (int)(float)((float)((float)*((int *)v3 + 452) * 0.1) + (float)((float)*((int *)v3 + 464) * 0.9)); *((_DWORD *)v3 + 463) = (int)(float)((float)((float)*((int *)v3 + 451) * 0.1) + (float)((float)*((int *)v3 + 463) * 0.9)); *((_DWORD *)v3 + 464) = v45; if ( v178 <= 0 ) { v175 = 0; goto LABEL_104; } v46 = v177; v182 = 0; v175 = 0; v171 = v178 - 1; v176 = v46; while ( 2 ) { M_nxt = a1->m_allowedButtons._M_h._M_before_begin._M_nxt; if ( M_nxt ) { do { v48 = M_nxt->_M_nxt; operator delete(M_nxt); M_nxt = v48; } while ( v48 ); } memset(a1->m_allowedButtons._M_h._M_buckets, 0, 8 * a1->m_allowedButtons._M_h._M_bucket_count); a1->m_allowedButtons._M_h._M_element_count = 0; a1->m_allowedButtons._M_h._M_before_begin._M_nxt = nullptr; *((_BYTE *)v3 + 1912) = 0; if ( GJBaseGameLayer::shouldUseSubstepForButton(a1, v176) ) { *((_BYTE *)v3 + 1912) = 1; v49 = 0; v50 = v174 * 0.5; v51 = v181 * 0.5; v52 = v177 * 0.5; v53 = v173 * 0.5; } else { v53 = v173; v49 = *((unsigned __int8 *)v3 + 1912) ^ 1; v52 = v177; v51 = v181; v50 = v174; } v55 = v53; while ( 1 ) { a1->m_spawnCount = 0; v56 = v183; v57 = 0; if ( v49 == 1 ) { if ( v171 == v182 ) v56 = 0; v57 = v171 == v182; } m_totalTime = a1->m_gameState.m_totalTime; v59 = *((unsigned __int8 *)v3 + 1392); m_unkDouble3 = a1->m_gameState.m_unkDouble3; v3[441] = 0.0; v61 = v51 + m_totalTime; v3[442] = 0.0; v3[443] = 0.0; v3[444] = 0.0; v3[445] = 0.0; v3[446] = 0.0; v3[447] = 0.0; v3[448] = 0.0; v3[449] = 0.0; v3[450] = 0.0; v3[451] = 0.0; v3[452] = 0.0; a1->m_gameState.m_totalTime = v61; a1->m_gameState.m_unkDouble3 = m_unkDouble3 + v52; if ( !v59 && !*((_BYTE *)v3 + 682) ) { v62 = *((unsigned __int8 *)v3 + 1912); m_tickIndex = a1->m_tickIndex; a1->m_timePlayed = a1->m_timePlayed + v52; if ( v62 ) v64 = m_tickIndex + 1; else v64 = m_tickIndex + 2; v65 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v54 = v52; a1->m_tickIndex = v64; v65->updateAttemptTime(a1, v54); v61 = a1->m_gameState.m_totalTime; } v66 = a1->m_player2; a1->m_player1->m_totalTime = v61; v66->m_totalTime = a1->m_gameState.m_totalTime; if ( v49 ) { m_parent = a1->m_destroyObjectValues.m_header.m_parent; while ( m_parent ) { std::_Rb_tree,std::pair const,std::pair>,std::_Select1st const,std::pair>>,std::less>,std::allocator const,std::pair>>>::_M_erase( (__int64)(v3 + 26), &m_parent->m_right->m_isblack); v68 = m_parent; m_parent = m_parent->m_left; operator delete(v68); } a1->m_destroyObjectValues.m_header.m_parent = nullptr; a1->m_destroyObjectValues.m_header.m_left = (std::_rb_tree_base *)(v3 + 28); a1->m_destroyObjectValues.m_header.m_right = (std::_rb_tree_base *)(v3 + 28); v69 = a1->m_spawnTuples._M_t._M_impl._M_header._M_parent; *((_QWORD *)v3 + 18) = 0; while ( v69 ) { std::_Rb_tree,std::tuple,std::_Identity>,std::less>,std::allocator>>::_M_erase( (__int64)&a1->m_spawnTuples, v69->_M_right); v70 = v69; v69 = v69->_M_left; operator delete(v70); } a1->m_spawnTuples._M_t._M_impl._M_header._M_parent = nullptr; a1->m_spawnTuples._M_t._M_impl._M_header._M_left = &a1->m_spawnTuples._M_t._M_impl._M_header; v71 = v181; a1->m_spawnTuples._M_t._M_impl._M_header._M_right = &a1->m_spawnTuples._M_t._M_impl._M_header; v72 = a1->m_effectManager; a1->m_spawnTuples._M_t._M_impl._M_node_count = 0; GJEffectManager::updateSpawnTriggers(v72, v71); } m_timeModRelated = a1->m_gameState.m_timeModRelated; if ( m_timeModRelated != 0.0 ) GJBaseGameLayer::updateTimeMod(a1, m_timeModRelated, 1, a1->m_gameState.m_timeModRelated2); a1->applyTimeWarp(a1, a1->m_gameState.m_timeWarp); v74 = v52; GJBaseGameLayer::processCommands(a1, v74, *((_BYTE *)v3 + 1912), v57); PlayerObject::resetTouchedRings(a1->m_player1, 0); if ( a1->m_gameState.m_isDualMode ) PlayerObject::resetTouchedRings(a1->m_player2, 0); PlayerObject::resetCollisionLog(a1->m_player1, 0); if ( a1->m_gameState.m_isDualMode ) PlayerObject::resetCollisionLog(a1->m_player2, 0); GJEffectManager::preCollisionCheck(a1->m_effectManager); if ( v49 ) { v75 = a1->m_spawnTuples._M_t._M_impl._M_header._M_parent; while ( v75 ) { std::_Rb_tree,std::tuple,std::_Identity>,std::less>,std::allocator>>::_M_erase( (__int64)&a1->m_spawnTuples, v75->_M_right); v76 = v75; v75 = v75->_M_left; operator delete(v76); } a1->m_spawnTuples._M_t._M_impl._M_header._M_parent = nullptr; a1->m_spawnTuples._M_t._M_impl._M_header._M_left = &a1->m_spawnTuples._M_t._M_impl._M_header; a1->m_spawnTuples._M_t._M_impl._M_header._M_right = &a1->m_spawnTuples._M_t._M_impl._M_header; a1->m_spawnTuples._M_t._M_impl._M_node_count = 0; } m_isDualMode = a1->m_gameState.m_isDualMode; y = a1->m_player1->getPosition(a1->m_player1)->y; LastPosition = GameObject::getLastPosition(a1->m_player1); v80 = a1->m_player1; *(float *)&v81 = v80->m_yVelocityRelated3; v82 = y - LastPosition->y; if ( !*((_BYTE *)v3 + 682) ) { *(double *)&v81 = vabds_f32(v82, *(float *)&v81); if ( *(double *)&v81 > v50 * 16.0 ) v82 = 0.0; } v83 = *(float *)((__int64 (__fastcall *)(PlayerObject *, long double))v80->getPosition)(a1->m_player1, v81); v84 = GameObject::getLastPosition(a1->m_player1); v85 = a1->m_effectManager; if ( *((_BYTE *)v3 + 682) ) { v86 = 0.0; v82 = 0.0; } else { v86 = v83 - v84->x; } v87 = a1->m_player1; v85->m_unk780 = v86; v85->m_unk784 = v82; v88 = v87; getRotation = v87->getRotation; v85->m_unk788 = -a1->m_gameState.m_cameraStepDiff.x; v85->m_unk78C = -a1->m_gameState.m_cameraStepDiff.y; v90 = getRotation(v88); v91 = a1->m_effectManager; v92 = a1->m_player2; v93 = v92->getRotation; v85->m_unk790 = v90 - a1->m_player1->m_unkUnused3; v94 = v93(v92); v95 = *((unsigned __int8 *)v3 + 682); v91->m_unk794 = v94 - a1->m_player2->m_unkUnused3; if ( v95 < (v49 & 1u) ) { v122 = v181; GJEffectManager::updateTimers(a1->m_effectManager, v122, a1->m_gameState.m_timeWarp); } v96 = v51; GJEffectManager::prepareMoveActions(a1->m_effectManager, v96, v56); v97 = v51; GJBaseGameLayer::processMoveActionsStep(a1, v97, v57); GJEffectManager::postMoveActions(a1->m_effectManager); a1->updateVerifyDamage(a1); if ( v49 ) { GJBaseGameLayer::updateCollisionBlocks(a1); if ( *((_BYTE *)v3 + 682) ) goto LABEL_84; } else if ( *((_BYTE *)v3 + 682) ) { goto LABEL_76; } m_ignoreDamage = 1; if ( !*((_BYTE *)v3 + 268) ) m_ignoreDamage = a1->m_ignoreDamage; v99 = v51; v100 = a1->m_player2; v101 = a1->m_player1; m_maybeReverseAcceleration = v101->m_maybeReverseAcceleration; v100->m_maybeReverseSpeed = v101->m_maybeReverseSpeed; v100->m_maybeReverseAcceleration = m_maybeReverseAcceleration; PlayerObject::updateInternalActions(v101, v99); if ( a1->m_gameState.m_isDualMode ) { v121 = v51; PlayerObject::updateInternalActions(a1->m_player2, v121); } v103 = v50; a1->m_player1->update(a1->m_player1, v103); v104 = a1->m_player1; if ( !a1->m_enable22Changes || !v104->m_isLocked ) { v105 = v50; if ( GJBaseGameLayer::checkCollisions(a1, v104, v105, m_ignoreDamage) == 1 && *((_BYTE *)v3 + 268) && !a1->m_ignoreDamage ) { a1->playerTookDamage(a1, a1->m_player1); } v104 = a1->m_player1; } v106 = v51; PlayerObject::updateSpecial(v104, v106); if ( m_isDualMode && a1->m_gameState.m_isDualMode ) { v127 = v50; a1->m_player2->update(a1->m_player2, v127); v128 = a1->m_player2; if ( !a1->m_enable22Changes || !v128->m_isLocked ) { v129 = v50; if ( GJBaseGameLayer::checkCollisions(a1, v128, v129, m_ignoreDamage) == 1 && *((_BYTE *)v3 + 268) && !a1->m_ignoreDamage ) { a1->playerTookDamage(a1, a1->m_player2); } v128 = a1->m_player2; } v130 = v51; PlayerObject::updateSpecial(v128, v130); } a1->m_gameState.m_levelTime = a1->m_gameState.m_levelTime + v51 / a1->m_gameState.m_timeWarp; if ( v49 ) GJBaseGameLayer::checkSpawnObjects(a1); v107 = a1->m_player1; v108 = v107->getRotation(v107); v109 = a1->m_player2; v107->m_unkUnused3 = v108; v109->m_unkUnused3 = v109->getRotation(v109); PlayerObject::updateRotation(a1->m_player1, v55); if ( a1->m_gameState.m_isDualMode ) PlayerObject::updateRotation(a1->m_player2, v55); v110 = a1->m_player1; v111 = v110->getPosition(v110); cocos2d::CCPoint::CCPoint(&v187, v111); cocos2d::CCPoint::operator=(&v110->m_shipRotation, v112, v113); if ( a1->m_gameState.m_isDualMode ) { v123 = a1->m_player2; v124 = v123->getPosition(v123); cocos2d::CCPoint::CCPoint(&v187, v124); cocos2d::CCPoint::operator=(&v123->m_shipRotation, v125, v126); } GJBaseGameLayer::updateSavePositionObjects(a1); MaxPortalY = GJBaseGameLayer::getMaxPortalY(a1); v115 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_gameState.m_unkUint17 = MaxPortalY; v115->checkForEnd(a1); a1->m_timestamp = a1->m_timestamp + v51; if ( v49 ) { LABEL_84: GJEffectManager::postCollisionCheck(a1->m_effectManager); GJBaseGameLayer::checkRepellPlayer(a1); GJBaseGameLayer::processStateObjects(a1); GJGameState::processStateTriggers(&a1->m_gameState); } LABEL_76: v116 = v51; GJGameState::updateTweenActions(&a1->m_gameState, v116); GJBaseGameLayer::updateCamera(a1, v55); a1->checkSnapshot(a1); if ( *((_BYTE *)v3 + 592) ) break; a1->processCheckpoints(a1); if ( v49 == 1 ) goto LABEL_86; LABEL_78: v49 = 1; } PlayerObject::updateCheckpointTest(a1->m_player1); a1->processCheckpoints(a1); if ( v49 != 1 ) goto LABEL_78; LABEL_86: if ( a1->m_gameState.m_queuedTimeWarp > 0.0 ) { ((void (__fastcall *)(GJBaseGameLayer *))a1->updateTimeWarp)(a1); a1->applyTimeWarp(a1, a1->m_gameState.m_timeWarp); } v117 = a1->m_gameState.m_timeWarp; if ( v117 != v179 ) { v118 = v178 - v182 - 1; if ( v118 > 0 ) { v182 = v178; v175 = 1; v119 = (double)v118 * v181; v120 = v119; a1->m_extraDelta = a1->m_extraDelta + v120; v180 = v180 - v120; } } if ( v178 > ++v182 ) { v179 = v117; continue; } break; } LABEL_104: if ( *((_BYTE *)v3 + 270) ) GJBaseGameLayer::updateSpecialLabels(a1); GJBaseGameLayer::updateTimerLabels(a1); GJBaseGameLayer::updateQueuedLabels(a1); cocos2d::CCPoint::CCPoint(&v184); cocos2d::CCPoint::CCPoint(&v185); v131 = a1->m_player1; if ( v131->m_isLocked ) goto LABEL_107; v152 = v131->getPosition(a1->m_player1); cocos2d::CCPoint::CCPoint(&v187, v152); cocos2d::CCPoint::operator=(&v131->m_position, v153, v154); if ( a1->m_gameState.m_isDualMode ) { v167 = a1->m_player2; v168 = v167->getPosition(v167); cocos2d::CCPoint::CCPoint(&v187, v168); cocos2d::CCPoint::operator=(&v167->m_position, v169, v170); } m_levelFlipping = a1->m_gameState.m_levelFlipping; if ( m_levelFlipping == 0.0 || m_levelFlipping == 1.0 ) { LABEL_107: v132 = 0; } else { if ( a1->m_cameraFlip == -1.0 ) m_levelFlipping = 1.0 - m_levelFlipping; v156 = cocos2d::CCDirector::sharedDirector(); v132 = 1; WinSize = cocos2d::CCDirector::getWinSize(v156); x = v187.x; v158 = (float)((float)(x / a1->m_gameState.m_cameraZoom) - (float)((float)(*(float *)((__int64 (__fastcall *)(PlayerObject *, float, float))a1->m_player1->getPosition)( a1->m_player1, WinSize.width, WinSize.height) - a1->m_gameState.m_cameraPosition.x) * 2.0)) * m_levelFlipping; v159 = a1->m_player1->getPosition(a1->m_player1); cocos2d::CCPoint::CCPoint(&v186, v158, 0.0); cocos2d::CCPoint::operator+(&v187, v159, &v186); cocos2d::CCPoint::operator=(&v184, v160, v161); if ( a1->m_gameState.m_isDualMode ) { v162 = a1->m_player2->getPosition(a1->m_player2); cocos2d::CCPoint::CCPoint(&v186, v158, 0.0); cocos2d::CCPoint::operator+(&v187, v162, &v186); cocos2d::CCPoint::operator=(&v185, v163, v164); } } m_cameraShakeFactor = a1->m_gameState.m_cameraShakeFactor; a1->m_gameState.m_cameraShakeEnabled = m_cameraShakeFactor > 0.0; if ( m_cameraShakeFactor > 0.0 ) { v134 = m_cameraShakeFactor - v180; a1->m_gameState.m_cameraShakeFactor = v134; } v135 = v180; GJEffectManager::updateEffects(a1->m_effectManager, v135); PlayerObject::updateEffects(a1->m_player1, v135); PlayerObject::updateEffects(a1->m_player2, v135); GJBaseGameLayer::updateGradientLayers(a1); GJBaseGameLayer::updateShaderLayer(a1, v135); if ( v132 ) { a1->m_player1->setPosition(a1->m_player1, &v184); if ( a1->m_gameState.m_isDualMode ) a1->m_player2->setPosition(a1->m_player2, &v185); } a1->postUpdate(a1, v135); GJBaseGameLayer::updateGuideArt(a1); GJBaseGameLayer::updateProximityVolumeEffects(a1); GJBaseGameLayer::updateAudioVisualizer(a1); if ( !GJBaseGameLayer::isFlipping(a1) && a1->m_gameState.m_unkBool12 ) GJBaseGameLayer::flipFinished(a1); v136 = a1->m_songTriggerInterval + v180; if ( v136 < 1.0 ) { a1->m_songTriggerInterval = v136; } else { v137 = a1->m_gameState.m_songTriggerStateVectors._M_h._M_before_begin._M_nxt; a1->m_songTriggerInterval = 0.0; if ( v137 ) { while ( 1 ) { while ( 1 ) { v138 = FMODAudioEngine::sharedEngine(); if ( !FMODAudioEngine::isMusicPlaying(v138, (int)v137[1]._M_nxt) ) break; v137 = v137->_M_nxt; if ( !v137 ) goto LABEL_118; } M_bucket_count = a1->m_gameState.m_songTriggerStateVectors._M_h._M_bucket_count; M_buckets = a1->m_gameState.m_songTriggerStateVectors._M_h._M_buckets; v141 = SLODWORD(v137[1]._M_nxt) % M_bucket_count; v142 = &M_buckets[v141]; for ( i = *v142; v137 != (std::__detail::_Hash_node_base *)*i; i = (_QWORD *)*i ) ; v144 = v137->_M_nxt; if ( M_buckets[v141] == (std::_Hashtable>, std::allocator>>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type)i ) break; if ( !v144 ) goto LABEL_131; v145 = SLODWORD(v144[1]._M_nxt) % M_bucket_count; if ( v141 == v145 ) goto LABEL_131; M_buckets[v145] = (std::_Hashtable>, std::allocator>>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type)i; p_m_songTriggerStateVectors = &a1->m_gameState.m_songTriggerStateVectors; v144 = v137->_M_nxt; LABEL_127: v147 = v137[2]._M_nxt; *i = v144; v148 = v137->_M_nxt; if ( v147 ) operator delete(v147); v149 = v137; v137 = v148; operator delete(v149); --p_m_songTriggerStateVectors->_M_h._M_element_count; if ( !v148 ) goto LABEL_118; } if ( !v144 ) { v151 = (GJBaseGameLayer *)i; p_m_songTriggerStateVectors = &a1->m_gameState.m_songTriggerStateVectors; goto LABEL_135; } v150 = SLODWORD(v144[1]._M_nxt) % M_bucket_count; if ( v141 != v150 ) { M_buckets[v150] = (std::_Hashtable>, std::allocator>>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::__bucket_type)i; p_m_songTriggerStateVectors = &a1->m_gameState.m_songTriggerStateVectors; v142 = &a1->m_gameState.m_songTriggerStateVectors._M_h._M_buckets[v141]; v151 = (GJBaseGameLayer *)*v142; LABEL_135: if ( v151 == (GJBaseGameLayer *)&a1->m_gameState.m_songTriggerStateVectors._M_h._M_before_begin ) p_m_songTriggerStateVectors->_M_h._M_before_begin._M_nxt = v144; *v142 = nullptr; v144 = v137->_M_nxt; goto LABEL_127; } LABEL_131: p_m_songTriggerStateVectors = &a1->m_gameState.m_songTriggerStateVectors; goto LABEL_127; } } LABEL_118: *((_BYTE *)v3 + 481) = 0; a1->m_timestamp = v172; *((_BYTE *)v3 + 1912) = 0; if ( v175 ) a1->update(a1, 0.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source