179

GitHub - sundy-li/wechat_autojump_game: 用Golang实现微信跳一跳游戏自动玩

 6 years ago
source link: https://github.com/sundy-li/wechat_autojump_game
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

全自动玩微信跳一跳

Golang实现的自动玩微信跳一跳

  • 需要安装adb驱动, 这里有一篇国外作者的教程
  • 手机连接电脑后,进入设置-开发者选项-打开usb调试

准备就绪后,在终端输入adb devices, 如果可以看到对应设备,表示adb驱动已经安装配置完毕

如何安装使用

  • 安装方法一:

一键下载安装,无需搭建环境,傻瓜化使用方法 请在release 页面下载对应操作系统的二进制压缩包,解压后,执行jump文件即可

 $  ./jump 
  • 安装方法二:

手动安装,开发调试

 $ go get -u github.com/sundy-li/wechat_autojump_game
 $ cd $GOPATH/src/github.com/sundy-li/wechat_autojump_game/cmd
 $ go run main.go
  • ./jump -s 1.392, 参数s表示距离速度值,不同分辨率可以适当调节
  • ./jump -m 2000, 参数 m 表示休眠时间毫秒值
  • 利用adb shell截图游戏屏幕
  • 读取截屏图片,获取当前位置,下一跳位置,计算跳动距离和触屏时间
  • 利用adb shell发送input swipe事件来跳跃

实验结果:

game

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK