// // LevelPage::ccTouchBegan from 0x100405b0c to 0x100405c08 (252 bytes) // // 2 xrefs: // > sub_100405C08 @ 0x100405c0c // > @ 0x1008172c0 // // 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 // bool __fastcall LevelPage::ccTouchBegan(LevelPage *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { GJGameLevel *m_level; // x8 double v6; // d0 const cocos2d::CCPoint *v7; // x0 GameManager *v8; // x0 GameStatsManager *v9; // x0 GameStatsManager *v10; // x0 double v11; // [xsp+0h] [xbp-20h] BYREF cocos2d::CCPoint v12; // [xsp+8h] [xbp-18h] BYREF m_level = a1->m_level; if ( !m_level ) return 0; if ( !a1->m_coinObject || m_level->m_levelID.random - m_level->m_levelID.seed != -1 ) return 0; cocos2d::CCTouch::getLocation(a2); cocos2d::CCNode::convertToNodeSpace(a1, &v12); v6 = sub_1000229D0(&v12, &v11); v7 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(GameObject *, double))a1->m_coinObject->getPosition)( a1->m_coinObject, v6); if ( cocos2d::ccpDistance(v7, &v12) <= 30.0 ) { ((void (__fastcall *)(LevelPage *, _QWORD))a1->setTouchEnabled)(a1, 0); LevelPage::playCoinEffect(a1); v8 = GameManager::sharedState(); GameManager::reportAchievementWithID(v8, "geometry.ach.secret04", 100, 0); v9 = GameStatsManager::sharedState(); GameStatsManager::storeSecretCoin(v9, "secret04"); v10 = GameStatsManager::sharedState(); GameStatsManager::incrementStat_1(v10, "8"); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source