// // GJBaseGameLayer::resetCamera from 0x14023fb00 to 0x14023fdd3 (723 bytes) // // 2 xrefs: // > GJBaseGameLayer::resetLevelVariables @ 0x14023b6a0 // > @ 0x1406ce388 // // 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::resetCamera(GJBaseGameLayer *a1) { GJBaseGameLayer_vtbl *v2; // rax __int64 v3; // rdx bool v4; // r8 int v5; // [rsp+70h] [rbp+8h] BYREF cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint18, &dword_1406C1D28); cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint17, &dword_1406C1D28); cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint19, &dword_1406C1D28); cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint21, &dword_1406C1D28); cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint20, &dword_1406C1D28); cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint22, &dword_1406C1D28); cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint23, &dword_1406C1D28); cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint10, &dword_1406C1D28); cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint5, &dword_1406C1D28); cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint12, &dword_1406C1D28); cocos2d::CCPoint::operator=(&a1->m_gameState.m_unkPoint13, &dword_1406C1D28); a1->m_gameState.m_unkUint13 = 0.0; a1->m_gameState.m_isFreeMode = 0; *(_WORD *)&a1->m_gameState.m_unkBool28 = 0; a1->m_gameState.m_unkFloat2 = 0.5; a1->m_gameState.m_unkFloat3 = 10.0; GJBaseGameLayer::updateZoom(a1, 0.0, 0.0, 0, 0.0, -1, -1); a1->m_gameState.m_unkPoint1.x = 0.0; v5 = 15; sub_14024AC30(&a1->m_gameState.m_tweenActions, &v5); a1->m_gameState.m_cameraOffset.x = a1->m_gameState.m_unkPoint1.x; a1->m_gameState.m_unkPoint1.y = 0.0; v5 = 16; sub_14024AC30(&a1->m_gameState.m_tweenActions, &v5); a1->m_gameState.m_cameraOffset.y = a1->m_gameState.m_unkPoint1.y; a1->m_gameState.m_unkInt1 = 75; a1->m_gameState.m_unkBool2 = 0; a1->m_gameState.m_unkInt2 = 75; a1->m_gameState.m_unkBool3 = 0; a1->m_gameState.m_unkPoint27.y = 0.0; v5 = 19; sub_14024AC30(&a1->m_gameState.m_tweenActions, &v5); a1->m_gameState.m_unkPoint26.y = a1->m_gameState.m_unkPoint27.y; a1->m_gameState.m_unkPoint27.x = 0.0; v5 = 18; sub_14024AC30(&a1->m_gameState.m_tweenActions, &v5); a1->m_gameState.m_unkPoint26.x = a1->m_gameState.m_unkPoint27.x; v2 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; *(_QWORD *)&a1->m_gameState.m_cameraEdgeValue0 = 0; *(_QWORD *)&a1->m_gameState.m_cameraEdgeValue2 = 0; ((void (__fastcall *)(GJBaseGameLayer *, __int64, _QWORD, _QWORD, _DWORD, _DWORD, _DWORD, int, int))v2->updateScreenRotation)( a1, v3, 0, 0, 0, 0, 0, -1, -1); *(_QWORD *)&a1->m_cameraWidthOffset = 0; *(_QWORD *)&a1->m_cameraUnzoomedHeightOffset = 0; a1->m_calculateTargetHeightOffset = 1; cocos2d::CCPoint::operator=(&a1->m_gameState.m_cameraStepDiff, &dword_1406C1D28); GJBaseGameLayer::resetStaticCamera(a1, 1, v4); a1->m_gameState.m_cameraShakeEnabled = 0; a1->m_gameState.m_cameraShakeFactor = 0.0; *(_WORD *)&a1->m_gameState.m_unkBool4 = 0; a1->m_gameState.m_unkInt13 = 0.0; a1->m_gameState.m_unkPoint14.x = 1.0; a1->m_gameState.m_unkPoint14.y = 1.0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source