Giter VIP home page Giter VIP logo

jumpjump's Introduction

JumpJump


微信小游戏 跳一跳 kotlin PC破解

成果


1077

10010

mac

跳一跳


微信小程序可以玩游戏了,我们来破解一下《跳一跳》这个官方出品的小游戏吧。

思路


用usb调试安卓手机,用adb截图并用鼠标测量距离,然后计算按压时间后模拟按压。

$ adb shell input swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen) # 模拟长按
$ adb shell screencap <filename> # 保存截屏到手机
$ adb pull /sdcard/screen.png # 下载截屏文件到本地
  1. 得到手指按的时间 t
  2. 时间 = 距离 / 速度(常量) t = L / k
  3. L = p2 - p1
  4. 获取到起始点和结束点的坐标

源码


开发环境: Kotlin, IntelliJ IDEA

https://github.com/iOSDevLog/JumpJump

用 IntelliJ IDEA Open JJ 目录

我 MacOS 上面是 Java 9, Windows 10上是 Java 8.

可能要配置 Project Structure -> JDK, Edit Configurations -> Kotlin -> Configuration -> JRE 重新选择JRE 运行

生成 jar

Build -> Build Artifacts -> JJ:jar -> Build

使用方法


可以用打包好的。

https://github.com/iOSDevLog/JumpJump/releases

或者百度网盘: https://pan.baidu.com/s/1mhFMVrE

链接: https://pan.baidu.com/s/1i4Pw7hb 密码: ajjt

  1. 在电脑上下载好adb
  2. 打开安卓手机的usb调试模式并授权连接的电脑
  3. 直接运行 JJ.jar,选择 adb 路径
  4. 打开微信跳一跳,并点击开始
  5. 选择运行模式

运行中可调节 Ratio

切换模式最好重新打开应用。

参考


https://github.com/easyworld/PlayJumpJumpWithMouse

License


JumpJump is released under the GPL V3 license. See LICENSE for details.

jumpjump's People

Contributors

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