Code Monkey home page Code Monkey logo

wechat_autojump_game's Introduction

全自动玩微信跳一跳

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

wechat_autojump_game's People

Contributors

sundy-li avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.