Skip to content

Commit c2da3fc

Browse files
committed
Merge branch 'master' of https://github.com/iOSDevLog/JumpJump
2 parents 61deab3 + 7eb44f2 commit c2da3fc

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# JumpJump
23
---
34

@@ -19,9 +20,11 @@
1920

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

22-
adb shell input swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen) # 模拟长按
23-
adb shell screencap <filename> # 保存截屏到手机
24-
adb pull /sdcard/screen.png # 下载截屏文件到本地
23+
```bash
24+
$ adb shell input swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen) # 模拟长按
25+
$ adb shell screencap <filename> # 保存截屏到手机
26+
$ adb pull /sdcard/screen.png # 下载截屏文件到本地
27+
```
2528

2629
1. 得到手指按的时间 t
2730
1. 时间 = 距离 / 速度(常量) t = L / k
@@ -42,7 +45,7 @@ adb pull /sdcard/screen.png # 下载截屏文件到本地
4245
1. 在电脑上下载好adb
4346
1. 打开安卓手机的usb调试模式并授权连接的电脑
4447
1. 打开微信跳一跳,并点击开始
45-
1. 在Constans.java中配置好adb路径与截图路径,运行
48+
1. `Constans.kt`中配置好adb路径与截图路径,运行
4649
1. 在弹出的窗口中先点击小人底部适当位置,然后再点想要跳的箱子的位置即可完成
4750

4851
# 参考

0 commit comments

Comments
 (0)