// // LevelPage::ccTouchBegan from 0x1004250e0 to 0x1004251d4 (244 bytes) // // 2 xrefs: // > sub_1004251E0 @ 0x1004251ec // > @ 0x100b40e08 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:30:17 +0000 // char __fastcall LevelPage::ccTouchBegan(_QWORD **a1, __int64 a2) { _QWORD *v2; // rax unsigned __int64 *v4; // rax __int64 v5; // rax __int64 v6; // rax __int64 v7; // rax unsigned __int64 v8; // [rsp-30h] [rbp-30h] BYREF double v9[5]; // [rsp-28h] [rbp-28h] BYREF v2 = a1[53]; if ( !v2 || !a1[70] || *((_DWORD *)v2 + 82) - *((_DWORD *)v2 + 83) != -1 ) return 0; cocos2d::CCTouch::getLocation((__int64)&v8, a2); cocos2d::CCNode::convertToNodeSpace(v9, (__int64)a1, (unsigned int *)&v8); sub_100278300(&v8, v9); v4 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD *))(*a1[70] + 192LL))(a1[70]); if ( cocos2d::ccpDistance(v4, &v8) <= 30.0 ) { ((void (__fastcall *)(_QWORD **, _QWORD))(*a1)[125])(a1, 0); LevelPage::playCoinEffect(a1); v5 = GameManager::sharedState(); GameManager::reportAchievementWithID(v5, "geometry.ach.secret04", 100, 0); v6 = GameStatsManager::sharedState(); GameStatsManager::storeSecretCoin(v6); v7 = GameStatsManager::sharedState(); GameStatsManager::incrementStat_1(v7, (__int64)"8"); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source