// // PlayLayer::showTwoPlayerGuide from 0x1001181dc to 0x1001184ec (784 bytes) // // 1 xrefs: // > PlayLayer::setupHasCompleted @ 0x100116dec // // 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::CCDirector *v2; // x0 cocos2d::CCLabelBMFont *v3; // x19 __n128 v4; // q0 __n128 v5; // q1 cocos2d::CCLabelBMFont *v6; // x20 __n128 v7; // q0 __n128 v8; // q1 GameManager *v9; // x0 __int64 *v10; // x0 float v11; // s0 __int64 v12; // x0 cocos2d::CCSprite *v13; // x22 __n128 v14; // q0 __n128 v15; // q1 int i; // w26 cocos2d::CCNode *v17; // x8 cocos2d::CCNode *v18; // x21 cocos2d::CCFadeTo *v19; // x23 cocos2d::CCAction *v20; // x0 __int64 v21; // [xsp+20h] [xbp-70h] BYREF float v22; // [xsp+28h] [xbp-68h] float v23; // [xsp+2Ch] [xbp-64h] cocos2d::SEL_CallFunc v24; // 0:x1.16 v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2); v3 = cocos2d::CCLabelBMFont::create_1("Player 1", "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v3->setScale)(v3, 0.8); v4 = ((__n128 (__fastcall *)(PlayLayer *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v3, 3); v4.n128_f32[0] = (float)(v22 * 0.5) - (float)(v22 * 0.25); v5.n128_f32[0] = v23 * 0.5; sub_100022980(v4, v5, &v21); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64 *))v3->setPosition)(v3, &v21); v6 = cocos2d::CCLabelBMFont::create_1("Player 2", "bigFont.fnt"); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v6->setScale)(v6, 0.8); v7 = ((__n128 (__fastcall *)(PlayLayer *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v6, 3); v7.n128_f32[0] = (float)(v22 * 0.5) + (float)(v22 * 0.25); v8.n128_f32[0] = v23 * 0.5; sub_100022980(v7, v8, &v21); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64 *))v6->setPosition)(v6, &v21); v9 = GameManager::sharedState(); if ( GameManager::getGameVariable(v9, "0010") ) { v10 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v3->getPosition)(v3); v11 = sub_1000229B8(&v21, v10); v12 = ((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *, float))v6->getPosition)(v6, v11); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v3->setPosition)(v3, v12); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64 *))v6->setPosition)(v6, &v21); } v13 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v13->setScale)(v13, (float)(v23 * 1.2) / v13->m_obRect.size.width); ((void (__fastcall *)(cocos2d::CCSprite *, float))v13->setRotation)(v13, 90.0); v14 = ((__n128 (__fastcall *)(PlayLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v13, 3); v14.n128_f32[0] = v22 * 0.5; v15.n128_f32[0] = v23 * 0.5; sub_100022980(v14, v15, &v21); ((void (__fastcall *)(cocos2d::CCSprite *, __int64 *))v13->setPosition)(v13, &v21); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v13->setBlendFunc)(v13, 0x100000302LL); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))v3->setOpacity)(v3, 0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))v6->setOpacity)(v6, 0); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))v13->setOpacity)(v13, 0); for ( i = 0; i != 3; ++i ) { if ( i == 1 ) v17 = v6; else v17 = v13; if ( i ) v18 = v17; else v18 = v3; v19 = cocos2d::CCFadeTo::create(0.2, 0xFFu); cocos2d::CCDelayTime::create(0.8); cocos2d::CCFadeTo::create(0.2, 0); v24.ptr = (void (*)(void))520; v24.adj = 1; cocos2d::CCCallFunc::create(v18, v24); v20 = (cocos2d::CCAction *)sub_10018A494(v19); cocos2d::CCNode::runAction(v18, v20); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source