// // GJBaseGameLayer::createPlayerCollisionBlock from 0x1001eaa3c to 0x1001eab94 (344 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x100117204 // > LevelEditorLayer::init @ 0x100357420 // // 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 GJBaseGameLayer::createPlayerCollisionBlock(GJBaseGameLayer *a1) { char v2; // w8 char v3; // w25 GameObject *v4; // x21 PlayerObject *m_player2; // x0 __int64 *v6; // x0 float v7; // s0 __int64 v8; // [xsp+8h] [xbp-78h] BYREF void *v9[2]; // [xsp+10h] [xbp-70h] BYREF char v10; // [xsp+27h] [xbp-59h] void *__p[2]; // [xsp+28h] [xbp-58h] BYREF char v12; // [xsp+3Fh] [xbp-41h] if ( !a1->m_player1CollisionBlock ) { v2 = 1; do { v3 = v2; v4 = GameObject::createWithKey(1816); cocos2d::CCObject::retain(v4); ((void (__fastcall *)(GameObject *))v4->customSetup)(v4); sub_100009900(__p, "edit_eCollisionBlock01_001.png"); GameObject::addColorSprite((int)v4, (char *)__p); if ( v12 < 0 ) operator delete(__p[0]); sub_100009900(v9, "edit_eCollisionBlock01_001.png"); ((void (__fastcall *)(GameObject *, void **))v4->setupCustomSprites)(v4, v9); if ( v10 < 0 ) { operator delete(v9[0]); if ( (v3 & 1) == 0 ) { LABEL_9: a1->m_player2CollisionBlock = v4; *(_DWORD *)&v4[1]._displayedOpacity = 10001; m_player2 = a1->m_player2; goto LABEL_10; } } else if ( (v3 & 1) == 0 ) { goto LABEL_9; } a1->m_player1CollisionBlock = v4; *(_DWORD *)&v4[1]._displayedOpacity = 10000; m_player2 = a1->m_player1; LABEL_10: v6 = (__int64 *)((__int64 (__fastcall *)(PlayerObject *))m_player2->getPosition)(m_player2); v7 = sub_1000229B8(&v8, v6); ((void (__fastcall *)(GameObject *, __int64 *, float))v4->setStartPos)(v4, &v8, v7); v4->m_bDontDraw = 1; v4->m_unk507 = 1; ((void (__fastcall *)(GJBaseGameLayer *, GameObject *))a1->addToSection)(a1, v4); sub_10024A2D0(a1->m_collisionBlocks, v4); v2 = 0; } while ( (v3 & 1) != 0 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source