Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小米4c,1080p,自动脚本 只能跳个位数,各种改参数都没用 #59

Closed
qiantao94 opened this issue Dec 30, 2017 · 5 comments

Comments

@qiantao94
Copy link

1

@binderclip
Copy link
Collaborator

binderclip commented Dec 30, 2017

  1. 更新最新的代码
  2. 提供具体分辨率,以及最后一次使用的参数
  3. 上传一张 screenshot_backups 目录下的 _d.png 结尾画了线的图

@binderclip
Copy link
Collaborator

@blendzlq
Copy link

blendzlq commented Jan 2, 2018

小米4C 参数
{
"under_game_score_y": 320,
"press_coefficient": 1.524,
"piece_base_height_1_2": 25,
"piece_body_width": 80,
"swipe" : {
"x1": 500,
"y1": 1600,
"x2": 500,
"y2": 1600
}
}

同时 在 wechat_jump_auto.py 中 在main ()中 的jump之前插入

distance = math.sqrt((board_x - piece_x) ** 2 + (board_y - piece_y) ** 2)
print("start-------- distance --------start: ", distance)
tmp = 0
if distance < 220:
tmp = 38
print("200-------- distance --------200:",tmp)
elif distance < 380:
tmp = 30
print("350-------- distance --------350:",tmp)
elif distance < 480 :
tmp = 25
print("465-------- distance --------465:",tmp)
elif distance < 515 :
tmp = 14
print("500-------- distance --------500:",tmp)
elif distance < 580 :
tmp = 12
print("540-------- distance --------540:",tmp)
elif distance < 635 :
tmp = 5
print("630-------- distance --------630:",tmp)
distance = distance + tmp
print("end-------- distance --------end: ", distance)
jump(distance)
把jump注释了。。就ok。。亲测3000+。。

@BinLu-leo
Copy link

“同时 在 wechat_jump_auto.py 中 在main ()中 的jump之前插入”,请问这个代码在哪里呢,在源代码中没有找到位置,还请赐教

@blendzlq
Copy link

blendzlq commented Jan 9, 2018

就在wechat_jump_auto.py中的main()中 没法截图 在代码中的后面 大概应该268行是main(). 在
set_button_position(im) 之后插入。屏蔽作者的jump()函数。。ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants