// // PlayLayer::showTwoPlayerGuide from 0x1000b16b0 to 0x1000b1a3f (911 bytes) // // 1 xrefs: // > PlayLayer::setupHasCompleted @ 0x1000ae306 // // 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 PlayLayer::showTwoPlayerGuide(PlayLayer *a1) { cocos2d::CCLabelBMFont *v2; // rbx cocos2d::CCLabelBMFont *v3; // r14 GameManager *v4; // rax __int64 v5; // rsi double v6; // xmm0_8 __int64 v7; // rax cocos2d::CCSprite *v8; // r15 unsigned int v9; // r13d unsigned int v10; // r12d unsigned int v11; // eax int v12; // r9d cocos2d::CCAction *v13; // rax unsigned int v14; // ebx unsigned int v15; // r12d unsigned int v16; // r13d unsigned int v17; // eax int v18; // r9d cocos2d::CCAction *v19; // rax unsigned int v20; // ebx unsigned int v21; // r14d unsigned int v22; // r12d unsigned int v23; // eax int v24; // r9d cocos2d::CCAction *v25; // rax unsigned int v26; // [rsp+0h] [rbp-40h] _BYTE v27[8]; // [rsp+8h] [rbp-38h] BYREF float v28; // [rsp+10h] [rbp-30h] BYREF float v29; // [rsp+14h] [rbp-2Ch] cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v28); v2 = cocos2d::CCLabelBMFont::create_3("Player 1", "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v2->setScale)(v2, 0.80000001); ((void (__fastcall *)(PlayLayer *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v2, 3); sub_10028CBE0(v27, (float)(v28 * 0.5) - (float)(v28 * 0.25), v29 * 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v2->setPosition)(v2, v27); v3 = cocos2d::CCLabelBMFont::create_3("Player 2", "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v3->setScale)(v3, 0.80000001); ((void (__fastcall *)(PlayLayer *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v3, 3); sub_10028CBE0(v27, (float)(v28 * 0.25) + (float)(v28 * 0.5), v29 * 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v3->setPosition)(v3, v27); v4 = GameManager::sharedState(); if ( GameManager::getGameVariable(v4, "0010") ) { v5 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v2->getPosition)(v2); v6 = sub_10028CC60(v27); v7 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, __int64, double))v3->getPosition)(v3, v5, v6); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v2->setPosition)(v2, v7); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _BYTE *))v3->setPosition)(v3, v27); } v8 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v8->setScale)(v8, (float)(v29 * 1.2) / v8->m_obRect.size.width); ((void (__fastcall *)(cocos2d::CCSprite *, float))v8->setRotation)(v8, 90.0); ((void (__fastcall *)(PlayLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v8, 3); sub_10028CBE0(v27, v28 * 0.5, 0.5 * v29); ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *))v8->setPosition)(v8, v27); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v8->setBlendFunc)(v8, 0x100000302LL); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))v2->setOpacity)(v2, 0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))v3->setOpacity)(v3, 0); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v8->setOpacity)(v8, 0); v26 = (unsigned int)cocos2d::CCFadeTo::create(0.2, 0xFFu); v9 = (unsigned int)cocos2d::CCDelayTime::create(0.80000001); v10 = (unsigned int)cocos2d::CCFadeTo::create(0.2, 0); v11 = (unsigned int)cocos2d::CCCallFunc::create(v2, (cocos2d::SEL_CallFunc)0x209uLL); v13 = (cocos2d::CCAction *)sub_1003B5760(v26, v9, v10, v11, 0, v12); cocos2d::CCNode::runAction(v2, v13); v14 = (unsigned int)cocos2d::CCFadeTo::create(0.2, 0xFFu); v15 = (unsigned int)cocos2d::CCDelayTime::create(0.80000001); v16 = (unsigned int)cocos2d::CCFadeTo::create(0.2, 0); v17 = (unsigned int)cocos2d::CCCallFunc::create(v3, (cocos2d::SEL_CallFunc)0x209uLL); v19 = (cocos2d::CCAction *)sub_1003B5760(v14, v15, v16, v17, 0, v18); cocos2d::CCNode::runAction(v3, v19); v20 = (unsigned int)cocos2d::CCFadeTo::create(0.2, 0xFFu); v21 = (unsigned int)cocos2d::CCDelayTime::create(0.80000001); v22 = (unsigned int)cocos2d::CCFadeTo::create(0.2, 0); v23 = (unsigned int)cocos2d::CCCallFunc::create(v8, (cocos2d::SEL_CallFunc)0x209uLL); v25 = (cocos2d::CCAction *)sub_1003B5760(v20, v21, v22, v23, 0, v24); cocos2d::CCNode::runAction(v8, v25); }
GD Web Decomp Icon

GD Web Decomp

Raw Source