{"id":13434612,"url":"https://github.com/wangshub/wechat_jump_game","last_synced_at":"2025-05-13T19:02:50.837Z","repository":{"id":27950044,"uuid":"115675788","full_name":"wangshub/wechat_jump_game","owner":"wangshub","description":"微信《跳一跳》Python 辅助","archived":false,"fork":false,"pushed_at":"2022-11-22T02:04:23.000Z","size":26971,"stargazers_count":13848,"open_issues_count":39,"forks_count":4294,"subscribers_count":560,"default_branch":"master","last_synced_at":"2025-04-27T08:36:11.991Z","etag":null,"topics":["adb","python","wechat-app"],"latest_commit_sha":null,"homepage":"https://zhuanlan.zhihu.com/p/32452473","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wangshub.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-29T02:00:19.000Z","updated_at":"2025-04-23T10:31:32.000Z","dependencies_parsed_at":"2023-01-14T08:45:09.222Z","dependency_job_id":null,"html_url":"https://github.com/wangshub/wechat_jump_game","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshub%2Fwechat_jump_game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshub%2Fwechat_jump_game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshub%2Fwechat_jump_game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshub%2Fwechat_jump_game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangshub","download_url":"https://codeload.github.com/wangshub/wechat_jump_game/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254010792,"owners_count":21998993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adb","python","wechat-app"],"created_at":"2024-07-31T03:00:18.897Z","updated_at":"2025-05-13T19:02:50.733Z","avatar_url":"https://github.com/wangshub.png","language":"Python","funding_links":[],"categories":["WeChat","Python","小游戏辅助"],"sub_categories":["Mini Program"],"readme":"# 教你用 Python 来玩微信跳一跳\n[![GitHub stars](https://img.shields.io/github/stars/wangshub/wechat_jump_game.svg)](https://github.com/wangshub/wechat_jump_game/stargazers) [![GitHub forks](https://img.shields.io/github/forks/wangshub/wechat_jump_game.svg)](https://github.com/wangshub/wechat_jump_game/network) [![GitHub license](https://img.shields.io/github/license/wangshub/wechat_jump_game.svg)](https://github.com/wangshub/wechat_jump_game/blob/master/LICENSE)\n\n[![Throughput Graph](https://graphs.waffle.io/wangshub/wechat_jump_game/throughput.svg)](https://waffle.io/wangshub/wechat_jump_game/metrics/throughput) \n\n## 游戏模式\n\n\u003e 2017 年 12 月 28 日下午，微信发布了 6.6.1 版本，加入了「小游戏」功能，并提供了官方 DEMO「跳一跳」。这是一个 2.5D 插画风格的益智游戏，玩家可以通过按压屏幕时间的长短来控制这个「小人」跳跃的距离。分数越高，那么在好友排行榜更加靠前。通过 Python 脚本自动运行，让你轻松霸榜。\n\n![](./resource/image/jump.gif)\n\n可能刚开始上手的时候，因为时间距离之间的关系把握不恰当，只能跳出几个就掉到了台子下面。**如果能利用图像识别精确测量出起始和目标点之间测距离，就可以估计按压的时间来精确跳跃。**\n\n## 原理说明\n\n##### 由于微信检测非常严厉，这里的防禁代码可能已经不起作用，主要供学习用途\n\n1. 将手机点击到《跳一跳》小程序界面\n\n2. 用 ADB 工具获取当前手机截图，并用 ADB 将截图 pull 上来\n```shell\nadb shell screencap -p /sdcard/autojump.png\nadb pull /sdcard/autojump.png .\n```\n\n3. 计算按压时间\n  * 手动版：用 Matplotlib 显示截图，用鼠标先点击起始点位置，然后点击目标位置，计算像素距离；\n  * 自动版：靠棋子的颜色来识别棋子，靠底色和方块的色差来识别棋盘；\n\n4. 用 ADB 工具点击屏幕蓄力一跳\n```shell\nadb shell input swipe x y x y time(ms)\n```\n\n\n\n## 使用教程\n\n相关软件工具安装和使用步骤请参考 [Android 和 iOS 操作步骤](https://github.com/wangshub/wechat_jump_game/wiki/Android-%E5%92%8C-iOS-%E6%93%8D%E4%BD%9C%E6%AD%A5%E9%AA%A4)\n\n#### 获取源码\n\n```\n- git clone https://github.com/wangshub/wechat_jump_game.git\n\n```\n##### 非常推荐使用Python3，避免编码及import问题\n## PR 要求\n##### 请选择 merge 进 master 分支，并且标题写上简短描述，例子 \n[优化] 使用PEP8优化代码\n\n## 版本说明\n\n- master 分支：稳定版本，已通过测试\n- dev 分支：开发版本，包含一些较稳定的新功能，累计多个功能并测试通过后合并至 prod 分支\n- 其他分支：功能开发 (feature) 或问题修复 (bugfix)，属于最新尝鲜版本，可能处于开发中的状态，基本完成后合并至 dev 分支\n\n## FAQ\n\n- 详见 [Wiki-FAQ](https://github.com/wangshub/wechat_jump_game/wiki/FAQ)\n\n## 更新日志\n\n- 详见 [changelog](https://github.com/wangshub/wechat_jump_game/blob/master/changelog.md)\n\n## 开发者列表\n\n- 详见 [contributors](https://github.com/wangshub/wechat_jump_game/graphs/contributors)\n\n## 交流\n\n- 314659953 (1000 人)\n- 176740763 (500 人)\n\n- 或者关注我的微信公众号后台留言\n\n![](./resource/image/qrcode_for_gh_3586401957c4_258.jpg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangshub%2Fwechat_jump_game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangshub%2Fwechat_jump_game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangshub%2Fwechat_jump_game/lists"}