// // GJBaseGameLayer::createPlayerCollisionBlock from 0x140218370 to 0x140218597 (551 bytes) // // 5 xrefs: // > LevelEditorLayer::init @ 0x1402d290f // > PlayLayer::setupHasCompleted @ 0x1403a7667 // > @ 0x14067f668 // > @ 0x14067f678 // > @ 0x1406cd254 // // 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::createPlayerCollisionBlock(GJBaseGameLayer *a1) { int i; // ebp GameObject *v3; // rsi GameObject_vtbl *v4; // rdi __int64 v5; // rax GameObject *m_player2CollisionBlock; // rcx __int128 v7; // [rsp+20h] [rbp-48h] BYREF __int64 v8; // [rsp+30h] [rbp-38h] __int64 v9; // [rsp+38h] [rbp-30h] cocos2d::CCPoint v10; // [rsp+78h] [rbp+10h] BYREF cocos2d::CCPoint v11; // [rsp+80h] [rbp+18h] BYREF if ( !a1->m_player1CollisionBlock ) { for ( i = 0; i < 2; ++i ) { v3 = GameObject::createWithKey(1816); cocos2d::CCObject::retain(v3); v3->customSetup(v3); v8 = 0; v9 = 15; v7 = 0; *(_QWORD *)&v7 = sub_14003AA10(0x20u); v8 = 30; v9 = 31; strcpy((char *)v7, "edit_eCollisionBlock01_001.png"); GameObject::addColorSprite((__int64)v3, (__int64)&v7); v8 = 0; v9 = 15; v7 = 0; *(_QWORD *)&v7 = sub_14003AA10(0x20u); v8 = 30; v9 = 31; strcpy((char *)v7, "edit_eCollisionBlock01_001.png"); v3->setupCustomSprites(v3, (std::string *)&v7); if ( i ) { a1->m_player2CollisionBlock = v3; *(_DWORD *)&v3[1]._cascadeColorEnabled = 10001; v4 = a1->m_player2CollisionBlock->__vftable; a1->m_player2->getPosition_0(a1->m_player2); cocos2d::CCPoint::CCPoint(&v11); m_player2CollisionBlock = a1->m_player2CollisionBlock; } else { a1->m_player1CollisionBlock = v3; *(_DWORD *)&v3[1]._cascadeColorEnabled = 10000; v4 = a1->m_player1CollisionBlock->__vftable; a1->m_player1->getPosition_0(a1->m_player1); cocos2d::CCPoint::CCPoint(&v10); m_player2CollisionBlock = a1->m_player1CollisionBlock; } ((void (__fastcall *)(GameObject *, __int64))v4->setStartPos)(m_player2CollisionBlock, v5); v3->m_bDontDraw = 1; v3->m_unk507 = 1; a1->addToSection(a1, v3); cocos2d::CCArray::addObject(a1->m_collisionBlocks, v3); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source