// // AnimatedGameObject::init from 0x100196ac0 to 0x100196c5a (410 bytes) // // 1 xrefs: // > AnimatedGameObject::create @ 0x100196a81 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:25:55 +0000 // __int64 __fastcall AnimatedGameObject::init(__int64 a1, int a2) { _BYTE *v3; // r15 const char *v4; // rdi __int64 v5; // rax _QWORD *v6; // rdi __int64 v7; // rax __int64 v8; // rax __int64 v9; // r14 _BYTE v11[8]; // [rsp+8h] [rbp-28h] BYREF float v12[8]; // [rsp+10h] [rbp-20h] BYREF *(_DWORD *)(a1 + 1248) = 2; *(_DWORD *)(a1 + 1028) = a2; LODWORD(v3) = 0; if ( a2 > 1327 ) { switch ( a2 ) { case 1328: v4 = "GJBeast03"; break; case 1584: *(_BYTE *)(a1 + 1520) = 1; v4 = "GJBeast04"; break; case 2012: *(_BYTE *)(a1 + 1520) = 1; v4 = "GJBeast05"; break; default: return (unsigned int)v3; } } else { switch ( a2 ) { case 918: *(_BYTE *)(a1 + 1520) = 1; v4 = "GJBeast01"; break; case 919: v4 = "BlackSludge"; break; case 1327: v4 = "GJBeast02"; break; default: return (unsigned int)v3; } } LODWORD(v3) = 0; v5 = CCAnimatedSprite::createWithType(v4, 0, 0); *(_QWORD *)(a1 + 1464) = v5; SpriteAnimationManager::stopAnimations(*(_QWORD *)(v5 + 648)); v6 = *(_QWORD **)(a1 + 1464); v6[89] = a1 + 1448; v7 = (*(__int64 (__fastcall **)(_QWORD *))(*v6 + 1072LL))(v6); if ( (unsigned __int8)GameObject::initWithTexture(a1, v7) ) { AnimatedGameObject::setupAnimatedSize(a1, (unsigned int)a2); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 1464)); v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); sub_100278630(v12, v8); v9 = *(_QWORD *)(a1 + 1464); v3 = v11; sub_100278250(v11, v12[0] * 0.5, 0.5 * v12[1]); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL))(v9, v11); *(_BYTE *)(a1 + 887) = 1; *(_BYTE *)(a1 + 313) = 0; AnimatedGameObject::setupChildSprites(a1); LOBYTE(v3) = 1; } return (unsigned int)v3; }