// // LevelEditorLayer::postUpdate from 0x1000f3420 to 0x1000f368d (621 bytes) // // 1 xrefs: // > @ 0x1008c0610 // // 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 __fastcall LevelEditorLayer::postUpdate(LevelEditorLayer *a1, float a2) { GJEffectManager *m_effectManager; // r14 int v4; // eax double v5; // xmm0_8 cocos2d::CCPoint *end; // r14 cocos2d::CCPoint *v7; // r14 bool m_maybeIsColliding; // al PlayerObject *v9; // r14 cocos2d::CCSprite *m_playtestDeathSprite; // r15 __int64 v11; // rax EditorUI *m_editorUI; // rdi double v13; // xmm0_8 cocos2d::CCPoint *v14; // r14 cocos2d::CCPoint *v15; // r14 cocos2d::CCPoint v16; // xmm0_8 _BYTE v18[32]; // [rsp+10h] [rbp-20h] BYREF if ( !a1->m_gameState.m_isDualMode ) a1->m_soloMode = 1; GJEffectManager::processColors(a1->m_effectManager); m_effectManager = a1->m_effectManager; *(cocos2d::ccColor3B *)&v4 = GJEffectManager::activeColorForIndex(m_effectManager, 1005); GJEffectManager::calculateLightBGColor(m_effectManager, (cocos2d::ccColor3B)v4); ((void (__fastcall *)(LevelEditorLayer *, float))a1->updateVisibility)(a1, a2); if ( a1->m_previewMode ) GJBaseGameLayer::updateLevelColors(a1); if ( a1->m_jumping ) { ((void (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1); v5 = sub_10028CC60(v18); end = a1->m_touchPoints.__end_; if ( end >= a1->m_touchPoints.__end_cap_.__value_ ) { v7 = (cocos2d::CCPoint *)sub_10010D050(&a1->m_touchPoints, v5); } else { sub_10028CC60(a1->m_touchPoints.__end_); v7 = end + 1; a1->m_touchPoints.__end_ = v7; } a1->m_touchPoints.__end_ = v7; } a1->m_trailTimer = a2 + a1->m_trailTimer; m_maybeIsColliding = a1->m_player1->m_maybeIsColliding; if ( m_maybeIsColliding || a1->m_gameState.m_isDualMode && a1->m_player2->m_maybeIsColliding ) { v9 = *(&a1->m_player1 + !m_maybeIsColliding); PlayerObject::playerDestroyed(v9, 0); m_playtestDeathSprite = a1->m_playtestDeathSprite; v11 = ((__int64 (__fastcall *)(PlayerObject *))v9->getPosition)(v9); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))m_playtestDeathSprite->setPosition)(m_playtestDeathSprite, v11); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_playtestDeathSprite->setVisible)( a1->m_playtestDeathSprite, 1); LevelEditorLayer::onStopPlaytest(a1); m_editorUI = a1->m_editorUI; if ( m_editorUI ) EditorUI::playtestStopped(m_editorUI); } if ( a1->m_playbackMode == Playing && a1->m_trailTimer >= 0.033333335 ) { a1->m_trailTimer = 0.0; ((void (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1); v13 = sub_10028CC60(v18); v14 = a1->m_playerPoints.__end_; if ( v14 >= a1->m_playerPoints.__end_cap_.__value_ ) { a1->m_playerPoints.__end_ = (std::__vector_base::pointer)sub_10010D050(&a1->m_playerPoints, v13); if ( !a1->m_gameState.m_isDualMode ) return; } else { v13 = sub_10028CC60(a1->m_playerPoints.__end_); v15 = v14 + 1; a1->m_playerPoints.__end_ = v15; a1->m_playerPoints.__end_ = v15; if ( !a1->m_gameState.m_isDualMode ) return; } ((void (__fastcall *)(PlayerObject *, _BYTE *, double))a1->m_player2->getPosition)(a1->m_player2, v18, v13); *(double *)&v16 = sub_10028CC60(v18); LevelEditorLayer::addPlayer2Point(a1, v16, (bool)v18); a1->m_soloMode = 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source