// // GJGroundLayer::createLine from 0x7ebb4c to 0x7ebd50 (516 bytes) // // 2 xrefs: // > GJGroundLayer::init @ 0x7ebe44 // > @ 0xa9890 // // 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 GJGroundLayer::createLine(GJGroundLayer *a1, int a2) { cocos2d::CCSprite *m_lineSprite; // x0 float v4; // s1 cocos2d::CCDirector *v5; // x0 cocos2d::CCString *v6; // x0 const char *CString; // x0 cocos2d::CCSprite *v8; // x0 cocos2d::CCSprite *v9; // x23 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 cocos2d::CCSprite *v11; // x23 void (__fastcall *setAnchorPoint)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24 double v13; // d0 double v14; // d1 int v15; // [xsp+50h] [xbp+50h] float v16; // [xsp+50h] [xbp+50h] float v17; // [xsp+68h] [xbp+68h] cocos2d::CCPoint v18; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCSize WinSize; // 0:kr00_8.8 m_lineSprite = a1->m_lineSprite; if ( m_lineSprite ) { v15 = a2; m_lineSprite->removeFromParent(m_lineSprite); a1->m_lineSprite = nullptr; a2 = v15; } a1->m_lineType = a2; if ( a2 > 3 ) { a1->m_lineType = (unsigned int)&dword_0 + 3; } else { if ( a2 <= 0 ) a2 = 1; a1->m_lineType = a2; if ( a2 == 1 ) { v4 = 0.5; goto LABEL_10; } } v4 = 0.2; LABEL_10: v16 = v4; v5 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v5); *(float *)&v13 = WinSize.width; *(float *)&v14 = WinSize.height; if ( a1->m_lineType == 1 ) v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"floorLine_%02d_001.png", (_BYTE *)&dword_0 + 1, v13, v14); else v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"floorLine_%02d_001.png", (_BYTE *)&dword_0 + 2, v13, v14); CString = cocos2d::CCString::getCString(v6); v8 = cocos2d::CCSprite::createWithSpriteFrameName(CString); a1->m_lineSprite = v8; a1->addChild_0(a1, v8, 5); v9 = a1->m_lineSprite; setPosition = v9->setPosition; cocos2d::CCPoint::CCPoint(&v18, v17 * 0.5, v16); setPosition(v9, &v18); v11 = a1->m_lineSprite; setAnchorPoint = v11->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v18, 0.5, 1.0); setAnchorPoint(v11, &v18); a1->m_lineSprite->setTag(a1->m_lineSprite, 2); if ( a1->m_blendLine ) ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_lineSprite->setBlendFunc)(a1->m_lineSprite, 0x100000302LL); if ( a1->m_lineType > 1 ) { a1->m_lineSprite->setScaleX(a1->m_lineSprite, (float)(v17 + 10.0) / a1->m_lineSprite->m_obRect.size.width); if ( a1->m_lineType == 3 ) a1->m_lineSprite->setScaleY(a1->m_lineSprite, 2.0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source