Coder Social home page Coder Social logo

jumpjumphelper's Introduction

JumpJumpHelper

最好的语言 PHP 玩微信跳一跳

更新

  • 2017.12.31 新的中间点匹配函数
  • 2017.12.31 基于二次函数拟合计算按压时间

依赖

  • php-cli (>=5.6)
  • php-gd
  • adb 调试工具
  • android 手机

食用方式

  1. 手机进入设置 > 开发者选项,打开 USB 调试、模拟触控
  2. 手机连接电脑,安装 adb 相关驱动,检查 adb devices 命令是否能显示设备 ID
  3. 微信进入跳一跳游戏,点击开始
  4. 电脑运行 php run.php

如果发现跳跃过远/近,可以适当调节 config.php 中的参数

效果图

效果图

脚本原理

  1. 截取手机屏幕,并传到电脑上。
  2. 通过分析图片,取得当前任务及其目标位置
  3. 计算按压时间,通过 adb 命令模拟点按操作

识别原理

  • 人物位置:通过训练数据匹配人物底座最宽的部分
  • 目标位置:排除背景色后,从上至下找到第一个单峰位置,对于未找到的情况采用角度矫正(所有识别数据储存在 screen 文件夹中)

参考资料

项目 作者
教你用Python来玩微信跳一跳 @wangshub
微信跳一跳自动玩耍工具 @aOrz

jumpjumphelper's People

Contributors

metowolf 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.