// // GJMapObject::createMonster from 0x100266c20 to 0x100266ea1 (641 bytes) // // 2 xrefs: // > MapSelectLayer::init @ 0x1002682d5 // > MapSelectLayer::init @ 0x1002683ba // // 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 // GJMapObject *__fastcall GJMapObject::createMonster(int a1) { double v1; // xmm0_8 GameObject *v2; // rbx __int64 v3; // rax __int64 v4; // r15 __int128 *v5; // rax int v6; // eax GJMapObject *v7; // rbx int v8; // eax unsigned int v9; // r14d unsigned int v10; // eax int v11; // ecx int v12; // r8d int v13; // r9d cocos2d::CCAction *v14; // rax __int128 v16; // [rsp+0h] [rbp-50h] BYREF void *__p; // [rsp+10h] [rbp-40h] float v18; // [rsp+24h] [rbp-2Ch] float v19; // [rsp+28h] [rbp-28h] __int16 v20; // [rsp+2Ch] [rbp-24h] BYREF char v21; // [rsp+2Eh] [rbp-22h] float v22; // [rsp+34h] [rbp-1Ch] if ( a1 == 918 ) *(float *)&v1 = (float)((float)((float)rand() * 4.6566129e-10) * 0.40000001) + 0.69999999; else *(_QWORD *)&v1 = 1065353216; v22 = *(float *)&v1; v2 = GameObject::createWithKey(a1); v21 = 0; v20 = 0; ((void (__fastcall *)(GameObject *, __int16 *))v2->updateMainColor)(v2, &v20); v21 = -1; v20 = -1; ((void (__fastcall *)(GameObject *, __int16 *))v2->updateSecondaryColor)(v2, &v20); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&v2[1].m_sAdditionalTransform.b + 1064LL))( *(_QWORD *)&v2[1].m_sAdditionalTransform.b, 0x100000302LL); v3 = *(_QWORD *)&v2[1].m_obContentSize.height; v4 = *(_QWORD *)(v3 + 648); if ( (*(_BYTE *)(v3 + 688) & 1) != 0 ) { sub_100006B70(&v16, *(const void **)(v3 + 704), *(_QWORD *)(v3 + 696), v1); } else { v5 = (__int128 *)(v3 + 688); __p = *((void **)v5 + 2); v16 = *v5; } SpriteAnimationManager::runAnimation(v4, &v16); if ( (v16 & 1) != 0 ) operator delete(__p); if ( a1 == 918 ) { SpriteAnimationManager::updateAnimationSpeed( *(SpriteAnimationManager **)(*(_QWORD *)&v2[1].m_obContentSize.height + 648LL), 0.89999998); v6 = rand(); ((void (__fastcall *)(GameObject *, float))v2->setRotation)( v2, (float)((float)((float)v6 * 4.6566129e-10) * 10.0) + 10.0); ((void (__fastcall *)(GameObject *, float))v2->setScale)(v2, 0.34999999 * v22); v7 = GJMapObject::create(v2); v19 = 0.18000001 * v22; v18 = 0.5 * v22; sub_10028CBE0(&v20, 0.0, v22 * -11.0); ((void (__fastcall *)(cocos2d::CCSprite *, float))v7->m_shadowSprite->setScaleX)(v7->m_shadowSprite, v19); ((void (__fastcall *)(cocos2d::CCSprite *, float))v7->m_shadowSprite->setScaleY)(v7->m_shadowSprite, v18); ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v7->m_shadowSprite->setPosition)(v7->m_shadowSprite, &v20); v8 = rand(); v9 = (unsigned int)cocos2d::CCDelayTime::create((float)((float)v8 * 4.6566129e-10) * 0.40000001); v10 = (unsigned int)cocos2d::CCCallFunc::create( v7, (cocos2d::SEL_CallFunc)(unsigned __int64)GJMapObject::startMonsterJumpLoop); v14 = (cocos2d::CCAction *)sub_1003B5760(v9, v10, 0, v11, v12, v13); cocos2d::CCNode::runAction(v7, v14); return v7; } else { if ( a1 == 1327 ) ((void (__fastcall *)(GameObject *, float))v2->setScale)(v2, v22 * 0.60000002); return GJMapObject::create(v2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source