// // PlayLayer::showTwoPlayerGuide from 0x1403acaa0 to 0x1403ace35 (917 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x1403a70b0 // > @ 0x1406d6c74 // // 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 // // Hidden C++ exception states: #wind=1 void PlayLayer::showTwoPlayerGuide(PlayLayer *a1) { float v1; // xmm3_4 cocos2d::CCDirector *v3; // rax struct cocos2d::CCLabelBMFont *v4; // r15 cocos2d::CCLabelBMFont_vtbl *v5; // rbx const cocos2d::CCPoint *v6; // rax struct cocos2d::CCLabelBMFont *v7; // r12 cocos2d::CCLabelBMFont_vtbl *v8; // rbx const cocos2d::CCPoint *v9; // rax GameManager *v10; // rcx cocos2d::CCLabelBMFont_vtbl *v11; // rbx __int64 v12; // rax struct cocos2d::CCSprite *v13; // r13 float v14; // xmm0_4 cocos2d::CCSprite_vtbl *v15; // rbx const cocos2d::CCPoint *v16; // rax int i; // r14d CCLightFlash *v18; // rbp struct cocos2d::CCFadeTo *v19; // rsi struct cocos2d::CCDelayTime *v20; // rdi struct cocos2d::CCFadeTo *v21; // rbx __int64 v22; // rax struct cocos2d::CCSequence *v23; // rax cocos2d::ccColor3B *v24; // r8 float v25; // [rsp+A0h] [rbp+8h] __int64 v26; // [rsp+A8h] [rbp+10h] BYREF void *v27; // [rsp+B0h] [rbp+18h] v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v3); v4 = cocos2d::CCLabelBMFont::create("Player 1", (const char *)&qword_14052A4D8); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v4->setScale_0)(v4); a1->addChild_0(a1, v4, 3); v5 = v4->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v25 * 0.25, (float)(v25 * 0.5) - (float)(v25 * 0.25)); v5->setPosition_0(v4, v6); v7 = cocos2d::CCLabelBMFont::create("Player 2", (const char *)&qword_14052A4D8); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v7->setScale_0)(v7); a1->addChild_0(a1, v7, 3); v8 = v7->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v25 * 0.25, (float)(v25 * 0.5) + (float)(v25 * 0.25)); v8->setPosition_0(v7, v9); v10 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v27 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v27); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v10 = (GameManager *)qword_1406C2ED8; } if ( GameManager::getGameVariable(v10, "0010") ) { v4->getPosition_0(v4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26); v11 = v4->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v12 = (__int64)v7->getPosition_0(v7); v11->setPosition_0(v4, (const cocos2d::CCPoint *)v12); v7->setPosition_0(v7, (const cocos2d::CCPoint *)&v26); } v13 = cocos2d::CCSprite::createWithSpriteFrameName("floorLine_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v13->setScale_0)(v13); ((void (__fastcall *)(struct cocos2d::CCSprite *))v13->setRotation)(v13); v14 = ((float (__fastcall *)(PlayLayer *, struct cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v13, 3); v15 = v13->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v14, v25 * 0.5); v15->setPosition_0(v13, v16); v26 = 0x100000302LL; ((void (__fastcall *)(cocos2d::CCTextureProtocol *, __int64))v13->setBlendFunc)( &v13->cocos2d::CCTextureProtocol, 0x100000302LL); v4->setOpacity(&v4->cocos2d::CCRGBAProtocol, 0); v7->setOpacity(&v7->cocos2d::CCRGBAProtocol, 0); v13->setOpacity(&v13->cocos2d::CCRGBAProtocol, 0); for ( i = 0; i < 3; ++i ) { if ( i ) { v18 = (CCLightFlash *)v13; if ( i == 1 ) v18 = (CCLightFlash *)v7; } else { v18 = (CCLightFlash *)v4; } v19 = cocos2d::CCFadeTo::create(0.2, 0xFFu); v20 = cocos2d::CCDelayTime::create(0.80000001); v21 = cocos2d::CCFadeTo::create(0.2, 0); v22 = cocos2d::CCCallFunc::create(v18, sub_14003BE70); v23 = cocos2d::CCSequence::create(v19, v20, v21, v22); cocos2d::CCNode::runAction(v18, (cocos2d::CCPoint)v23, v24, v1, 0.0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source