Git Product home page Git Product logo

Comments (97)

ck2w avatar ck2w commented on May 26, 2024 14

机型:小米5s

分辨率(写明宽高):1920x1080

具体参数:
{
"under_game_score_y": 300,
"press_coefficient": 1.47,
"piece_base_height_1_2": 25,
"piece_body_width": 80
}
但还要处理distance变为分段函数
if distance < 400:
distance = 0.9 * distance + 50
else:
distance = 0.85 * distance + 80
还有updatefig停留时间延长,避免光环效果没有消失造成判断错误
time.sleep(3)

最高打到了多少分:
几千分,就先截个2018吧
wechat image_20171231164847

from wechat_jump_game.

gongzhibin avatar gongzhibin commented on May 26, 2024 10

红米note4x,分辨率1920 x 1080,已经跑到2000分自己给停了,而且没有上排行榜,测试最多跑1000分能上排行,各位悠着点。
具体参数:

    "under_game_score_y": 300, 
    "press_coefficient": 3.82, 
    "piece_base_height_1_2": 25, 
    "piece_body_width": 80

distance非线性: 参照#188,文件wechat_jump_auto.py85行更改为:

press_time = math.pow(distance,0.85) * press_coefficient

from wechat_jump_game.

wangjian-k avatar wangjian-k commented on May 26, 2024 9

小米6,分辨率 1920x1080
press_coefficient = 1.418
其他参数未修改

ps:自动开始游戏参数修改:swipe_x1,swipe_y1,swipe_x2,swipe_y2 = 560, 1550,560,1550

目前最高分是697

from wechat_jump_game.

SergioJune avatar SergioJune commented on May 26, 2024 9

有没有红米note4x的参数啊

from wechat_jump_game.

astarbo avatar astarbo commented on May 26, 2024 3

有红米note4x的参数吗,分辨率1920 x 1080 ,最高跳了50来分啊。

from wechat_jump_game.

WaveWu0914 avatar WaveWu0914 commented on May 26, 2024 3

@wangjian-k 你好,我也是小米6,调参后还是不行。
已解决。小米6要把悬浮球关掉。

from wechat_jump_game.

binderclip avatar binderclip commented on May 26, 2024 2

机型:一加3T
分辨率(写明宽高):1920x1080
具体参数:默认参数
最高打到了多少分(欢迎截图):
image
image

from wechat_jump_game.

ace0109 avatar ace0109 commented on May 26, 2024 2

小米6
"press_coefficient": 1.47,
python2.7

最高到800多,自杀

from wechat_jump_game.

sam453 avatar sam453 commented on May 26, 2024 1

荣耀note 8,分辨率 2560x1440

参数:

under_game_score_y = 385
press_coefficient = 1.04
piece_base_height_1_2 = 25
piece_body_width = 110

大概率落在中心点,分数1008了,还不挂,不玩了。。。

from wechat_jump_game.

jinhuiphy avatar jinhuiphy commented on May 26, 2024 1

米5 分辨率1920 x 1080 DPI480
{
"under_game_score_y": 300,
"press_coefficient": 1.419,
"piece_base_height_1_2": 20,
"piece_body_width": 70
}
添加修正后 Duplicate of #125
其他参数不变,可以跳到500+

from wechat_jump_game.

hudingjing244 avatar hudingjing244 commented on May 26, 2024 1

魅族pro6 测出来了 1920*1080,5.4英寸。
{
"under_game_score_y": 300,
"press_coefficient": 1.38,
"piece_base_height_1_2": 30,
"piece_body_width": 75
}
亲测2065分,自己把控制台关了,怕没朋友。。。

from wechat_jump_game.

anliu555 avatar anliu555 commented on May 26, 2024 1

魅蓝note3
1080P默认设置 屏幕5.5寸
用默认的可以到700+修改后明显降低。
按照非线性修改后,准确度下降明显,试了3.5都有点用力过猛

from wechat_jump_game.

breewf avatar breewf commented on May 26, 2024 1

@Mrhuuuuuuu

魅族pro6(pro6s) 1920*1080 5.2英寸。
{
"under_game_score_y": 300,
"press_coefficient": 1.38,
"piece_base_height_1_2": 30,
"piece_body_width": 75
}
这个参数太生猛了,几乎都是中心。另外魅族手机需要关掉悬浮球,否则一个也跳不过去。

from wechat_jump_game.

mikemelon avatar mikemelon commented on May 26, 2024 1

小米Note
1080*1920

"under_game_score_y": 300,
"press_coefficient": 1.45,
"piece_base_height_1_2": 22,
"piece_body_width": 82

最高620分,绝大多数时候能上500分。

from wechat_jump_game.

livingli avatar livingli commented on May 26, 2024 1

荣耀9,分辨率1920*1080,最高:没时间测试6000+以上随便弄
"under_game_score_y": 300,
"press_coefficient": 1.0,
"piece_base_height_1_2": 20,
"piece_body_width": 70,
"head_diameter": 60,
"swipe": {
"x1": 500,
"y1": 1600,
"x2": 500,
"y2": 1602

from wechat_jump_game.

VitalyAnkh avatar VitalyAnkh commented on May 26, 2024

我的是小米手机5s Plus,5.7英寸屏幕,1920*1080分辨率,press_coefficient=1.418比较合适

from wechat_jump_game.

hiyoi avatar hiyoi commented on May 26, 2024

锤子M1L,分辨率 2660x1440
under_game_score_y = 390
press_coefficient = 1.04
piece_base_height_1_2 = 26
piece_body_width = 110

目前最高分是878

from wechat_jump_game.

juemeng avatar juemeng commented on May 26, 2024

1加3T不是1920*1080的吗?

from wechat_jump_game.

binderclip avatar binderclip commented on May 26, 2024

@juemeng 手抖

from wechat_jump_game.

c588 avatar c588 commented on May 26, 2024

一加3T
1920*1080
ubuntu
默认参数
三千分

from wechat_jump_game.

zhuangsen avatar zhuangsen commented on May 26, 2024

一加5T
1080*2160
win7

第一步都跑不起来

from wechat_jump_game.

juemeng avatar juemeng commented on May 26, 2024

我也是一加3T,8.0公测第五版Room。。默认参数10位数就死了。。

from wechat_jump_game.

gunten avatar gunten commented on May 26, 2024

机型:一加5
分辨率(写明宽高):1920x1080
系数:1.392
216

from wechat_jump_game.

F-loat avatar F-loat commented on May 26, 2024

努比亚z17s,分辨率 2040x1080
under_game_score_y = 360 // 只改了这个参数
press_coefficient = 1.392
piece_base_height_1_2 = 25
piece_body_width = 80

最高分正在生成中(准备跑个2333😶),目前很高几率可以落在正中心

from wechat_jump_game.

cc-cfg avatar cc-cfg commented on May 26, 2024

大佬,请问这个参数在代码哪个地方更改?

from wechat_jump_game.

mg459046365 avatar mg459046365 commented on May 26, 2024

@a772856947 xxxxx_auto.py文件中

from wechat_jump_game.

cc-cfg avatar cc-cfg commented on May 26, 2024

@mg459046365 具体是贴哪个方法下面

from wechat_jump_game.

mg459046365 avatar mg459046365 commented on May 26, 2024

@a772856947 不用贴。# Magic Number,不设置可能无法正常执行,请根据具体截图从上到下按需设置。这句话,下面的几个数字都是可以调的。你根据说明去调节就行了。

from wechat_jump_game.

cc-cfg avatar cc-cfg commented on May 26, 2024

谢谢大佬 @mg459046365

from wechat_jump_game.

ww10075 avatar ww10075 commented on May 26, 2024

一加5t,目前可以正常跳跃了
具体参数如下:
under_game_score_y = 500
press_coefficient = 1.392
piece_base_height_1_2 = 25
piece_body_width = 80

from wechat_jump_game.

Jing-Luo avatar Jing-Luo commented on May 26, 2024

机型:小米Mix 2
参数

under_game_score_y = 420    
press_coefficient = 1.673   
swipe_x1, swipe_y1, swipe_x2, swipe_y2 = 600, 1800, 600, 1800     
piece_body_width = 85      

代码段

# coding: utf-8
import os
import time
import math
from PIL import Image
import random

# Magic Number,不设置可能无法正常执行,请根据具体截图从上到下按需设置
under_game_score_y = 420     # 截图中刚好低于分数显示区域的 Y 坐标,300 是 1920x1080 的值,2K 屏、全面屏请根据实际情况修改
press_coefficient = 1.673      # 长按的时间系数,请自己根据实际情况调节
swipe_x1, swipe_y1, swipe_x2, swipe_y2 = 600, 1800, 600, 1800     # 模拟按压的起始点坐标,需要自动重复游戏请设置成“再来一局”的坐标
piece_body_width = 85       # 棋子的宽度,比截图中量到的稍微大一点比较安全,可能要调节


def pull_screenshot():
    os.system('adb shell screencap -p /sdcard/1.png')
    os.system('adb pull /sdcard/1.png .')


def backup_screenshot(ts):
    # 为了方便失败的时候 debug
    dir_path = 'screenshot_backups/'
    if not os.path.isdir(dir_path):
        os.mkdir(dir_path)
    os.system('cp 1.png {}{}.png'.format(dir_path, ts))


def jump(distance):
    press_time = distance * press_coefficient
    press_time = max(press_time, 200)   # 设置 200 ms 是最小的按压时间
    press_time = int(press_time)
    cmd = 'adb shell input swipe {} {} {} {} {}'.format(swipe_x1, swipe_y1, swipe_x2, swipe_y2, press_time)
    print(cmd)
    os.system(cmd)


def find_piece_and_board(im):
    w, h = im.size

    for i in range(int(0.5*h), int(0.6*h)):
        piece_x_sum = 0
        piece_x_c = 0

        for j in range(w):
            pixel = im.getpixel((j, i))
            # 根据棋子的最低行的颜色判断,找最后一行那些点的平均值,这个颜色这样应该 OK,暂时不提出来
            if (50 < pixel[0] < 60) and (53 < pixel[1] < 63) and (95 < pixel[2] < 110):
                piece_x_sum += j
                piece_x_c += 1
        if piece_x_c:
            piece_x = piece_x_sum / piece_x_c
            break

    if not piece_x_c:
        return 0, 0
    
    for i in range(under_game_score_y, h):
        last_pixel = im.getpixel((0, i))
        board_x_sum = 0
        board_x_c = 0

        for j in range(w):
            pixel = im.getpixel((j, i))
            # 修掉脑袋比下一个小格子还高的情况的 bug
            if abs(j - piece_x) < piece_body_width:
                continue

            # 修掉圆顶的时候一条线导致的小 bug,这个颜色判断应该 OK,暂时不提出来
            if abs(pixel[0] - last_pixel[0]) + abs(pixel[1] - last_pixel[1]) + abs(pixel[2] - last_pixel[2]) > 5:
                board_x_sum += j
                board_x_c += 1
        if board_x_sum:
            board_x = board_x_sum / board_x_c
            break

    if not board_x:
        return 0, 0

    return piece_x, board_x


def main():
    while True:
        pull_screenshot()
        im = Image.open("./1.png")
        # 获取棋子和 board 的位置
        piece_x, board_x = find_piece_and_board(im)
        ts = int(time.time())
        print(piece_x, board_x)
        jump(abs(board_x - piece_x))
        backup_screenshot(ts)
        time.sleep(random.uniform(1.2, 1.5))   # 为了保证截图的时候应落稳了,多延迟一会儿

if __name__ == '__main__':
    main()

只用X坐标来调整,最高分是 536

from wechat_jump_game.

timmy-gzw avatar timmy-gzw commented on May 26, 2024

红米5 Plus
目前最高分跳到 500 多 就自杀了

under_game_score_y = 440
press_coefficient = 1.5
piece_base_height_1_2 = 25
piece_body_width = 80

from wechat_jump_game.

docwei2050 avatar docwei2050 commented on May 26, 2024

under_game_score_y = 390 # 截图中刚好低于分数显示区域的 Y 坐标,300 是 1920x1080 的值,2K 屏、全面屏请根据实际情况修改
press_coefficient = 1.04 # 长按的时间系数,请自己根据实际情况调节
swipe_x1, swipe_y1, swipe_x2, swipe_y2 = 750, 2118,750, 2118 # 模拟按压的起始点坐标,需要自动重复游戏请设置成“再来一局”的坐标
piece_base_height_1_2 = 26 # 二分之一的棋子底座高度,可能要调节
piece_body_width = 102 # 棋子的宽度,比截图中量到的稍微大一点比较安全,可能要调节

华为mate9 pro 分辨率 1440*2550 第一次跑就是很高分,,这个脚本太厉害了,,我用的auto那个

from wechat_jump_game.

zhuangsen avatar zhuangsen commented on May 26, 2024

@ww10075 为啥我的不可以呢

from wechat_jump_game.

xiaooooooowu avatar xiaooooooowu commented on May 26, 2024

华为mate9 默认设置 1636

from wechat_jump_game.

Francis-G avatar Francis-G commented on May 26, 2024

三星NOTE5 分辨率调到1920×1080 默认参数,正在蹦,比较完美
300分的时候蹦出去了

from wechat_jump_game.

lijinhua avatar lijinhua commented on May 26, 2024

720*1080
参数如下:
under_game_score_y = 250
press_coefficient = 2.1

from wechat_jump_game.

aimreant avatar aimreant commented on May 26, 2024

MIX2 MIUI9 Android 8.0 2160x1080
under_game_score_y = 420
press_coefficient = 1.373
swipe_x1, swipe_y1, swipe_x2, swipe_y2 = 600, 1800, 600, 1800
piece_base_height_1_2 = 25
piece_body_width = 85
sample_board_x1, sample_board_y1, sample_board_x2, sample_board_y2 = 353, 859, 772, 1100

from wechat_jump_game.

stardust-sudo avatar stardust-sudo commented on May 26, 2024

机型:华为荣耀4C
分辨率(写明宽高):720*1280
具体参数:
press_coefficient =2.1
其他不变
最高打到了多少分:1282

from wechat_jump_game.

liuqinglqlq avatar liuqinglqlq commented on May 26, 2024

小米Note2,MIUI9.1,分辨率1920 x 1080
press_coefficient = 1.498
piece_base_height_1_2 = 22
piece_body_width = 82
其他参数没变

打到500分没问题

from wechat_jump_game.

Kenmmm avatar Kenmmm commented on May 26, 2024

坚果 Pro 的参数有没有老铁试出来的

from wechat_jump_game.

yanxileo avatar yanxileo commented on May 26, 2024

搭车坚果 Pro2 的参数有没有老铁试出来的

from wechat_jump_game.

mg459046365 avatar mg459046365 commented on May 26, 2024

小米note2 参数也可以参考一下
Duplicate of #125 跑出4600+的分数。

from wechat_jump_game.

mg459046365 avatar mg459046365 commented on May 26, 2024

@liuqinglqlq 小米note2可以试试我的,跑出4600+分数
Duplicate of #125

from wechat_jump_game.

yushaw avatar yushaw commented on May 26, 2024

S8+ 2220*1080 跑出 3000+

under_game_score_y = 619
press_coefficient = 1.40 ##重新测试了下,最高分辨率下大概是1.05
swipe_x1, swipe_y1, swipe_x2, swipe_y2 = 320, 410, 320, 410
piece_base_height_1_2 = 20
piece_body_width = 70
sample_board_x1, sample_board_y1, sample_board_x2, sample_board_y2 = 463, 1692, 1047, 1364

from wechat_jump_game.

michelle6147 avatar michelle6147 commented on May 26, 2024

@yushaw 我也是S8+ 你用的是最新的代码吗,那个有json的? 我改成你的参数还是不行

from wechat_jump_game.

NoBey avatar NoBey commented on May 26, 2024

@yushaw 同 s8+ 1080p 不行啊

from wechat_jump_game.

yemengsky avatar yemengsky commented on May 26, 2024

小米Max2
{
"under_game_score_y": 300,
"press_coefficient": 1.5,
"piece_base_height_1_2": 20,
"piece_body_width": 70
}

from wechat_jump_game.

wangzepu avatar wangzepu commented on May 26, 2024

@ww10075 感谢评论区@ww10075 的一加5T参数,同是18:9 2160 x 1080 分辨率Almost全面屏,参数一致,几乎正中靶心,有少许偏差,跑了一次2303分。自动执行的话避免官方的检查,可以中途关闭终端,稍等一会,再重新执行程序。

机型:
坚果 Pro 2
分辨率(写明宽高):2160 x 1080 分辨率(18:9 Almost全面屏)

具体参数:
"under_game_score_y": 500,
"press_coefficient": 1.392,
"piece_base_height_1_2": 25,
"piece_body_width": 80

from wechat_jump_game.

yushaw avatar yushaw commented on May 26, 2024

@NoBey @michelle6147 你们调整下 press_coefficient 这个参数看下。 我刚才重试了没什么问题,S8+ 的最高分辨率下这个参数取值大概 1.05 左右。

python版本 3.6.3

from wechat_jump_game.

michelle6147 avatar michelle6147 commented on May 26, 2024

@yushaw 最高分辨率是2960*1440吗 ,
{
"under_game_score_y": 619,
"press_coefficient": 1.05,
"piece_base_height_1_2": 20,
"piece_body_width": 70
}
sample_board_x1, sample_board_y1, sample_board_x2, sample_board_y2 = 463, 1692, 1047, 1364
swipe_x1, swipe_y1, swipe_x2, swipe_y2 = 320, 410, 320, 410

我改成你这个参数了,第一下就跳了1185ms 直接跳出去了。

from wechat_jump_game.

Michaelwy avatar Michaelwy commented on May 26, 2024

奇了怪了,手机是坚果pro,昨晚用默认的auto参数刷到3k还可以一直刷,今天试了两次只能到五六百。

from wechat_jump_game.

Zeongwan avatar Zeongwan commented on May 26, 2024

有用小米4的大佬吗?

from wechat_jump_game.

Halfish avatar Halfish commented on May 26, 2024

红米 note3,默认配置。第一次到 1036 分,第二次还在跑,已经到 1300+ 了。。。

from wechat_jump_game.

Raynsun avatar Raynsun commented on May 26, 2024

三星s6
{
"under_game_score_y": 383,
"press_coefficient": 1.04,
"piece_base_height_1_2": 25,
"piece_body_width": 109
}
跳到1000多分自己主动停了,跳到中心几率挺高

from wechat_jump_game.

hudingjing244 avatar hudingjing244 commented on May 26, 2024

魅族PRO6有大佬测出来吗?1920*1080,5.4英寸的。

from wechat_jump_game.

xiaofan1991 avatar xiaofan1991 commented on May 26, 2024

华为荣耀V9有试出来参数的吗? 2560*1440,5.7寸
我只能跑1000多分

from wechat_jump_game.

liaochengyu avatar liaochengyu commented on May 26, 2024

@ gongzhibin 同样的设置,我的居然跑不动(差不多都是0分)

from wechat_jump_game.

gongzhibin avatar gongzhibin commented on May 26, 2024

@liaochengyu wechat_jump_auto.py85行改了吗?

from wechat_jump_game.

gongzhibin avatar gongzhibin commented on May 26, 2024

@liaochengyu 我看上传的图,底座高度改成25了

from wechat_jump_game.

JavenSong avatar JavenSong commented on May 26, 2024

为何小米5总是在往左跳时跳得过大力?

from wechat_jump_game.

wangyanwu avatar wangyanwu commented on May 26, 2024

你这个距离参数怎么算出来的,效果好明细,以前只能跳到200-300.现在直接1600多。

from wechat_jump_game.

tjiasong avatar tjiasong commented on May 26, 2024

诺基亚8 现在跳到1800 很慢感觉 就关了

from wechat_jump_game.

wfdubowen avatar wfdubowen commented on May 26, 2024

荣耀V10
分辨率:2160 * 1080
多次跳到中心点,测试到500多就没往下刷
under_game_score_y = 410
press_coefficient = 1.355
piece_base_height_1_2 = 38
piece_body_width = 100
sample_board_x1, sample_board_y1, sample_board_x2, sample_board_y2 = 337, 1242, 783, 975

from wechat_jump_game.

FalseEye avatar FalseEye commented on May 26, 2024

求红米note4x参数

from wechat_jump_game.

onlunar avatar onlunar commented on May 26, 2024

关闭曲面侧屏、悬浮球等的功能 可能需要打开免打扰,屏幕上有通知的话会严重干扰距离计算
按以下的参数在WQHD+ 2960x1440下测过十几次 P.S. 用adb隐藏了底部导航栏
{
"under_game_score_y": 460,
"press_coefficient": 1.047,
"piece_base_height_1_2": 90,
"piece_body_width": 100
}
上千比较轻松 连续跳出近三十次+32
测试的开始的确是有些较低分数偶尔出现,大部分分数都是在1500~3000 。
除jump距离很近的情况会跳过 其他容易miss的情况都没毛病
高分辨率会比1080大2-3倍的误差,看来还是需要在主函数jump()加上对distance的修正
1514765060

from wechat_jump_game.

ZZmove avatar ZZmove commented on May 26, 2024

1514774138_d
小米5C

脚本更改:

def jump(distance):
    press_time = pow(distance,0.855) * press_coefficient
    press_time = max(press_time, 200)   # 设置 200 ms 是最小的按压时间
    press_time = int(press_time)
    cmd = 'adb shell input swipe {x1} {y1} {x2} {y2} {duration}'.format(
        x1=swipe['x1'],
        y1=swipe['y1'],
        x2=swipe['x2'],
        y2=swipe['y2'],
        duration=press_time
    )
    print(cmd)
    os.system(cmd)

def main():
    dump_device_info()
    check_adb()		
    while True:
        pull_screenshot()
        im = Image.open('./autojump.png')
        # 获取棋子和 board 的位置
        piece_x, piece_y, board_x, board_y = find_piece_and_board(im)
        ts = int(time.time())
        print(ts, piece_x, piece_y, board_x, board_y)
        set_button_position(im)
        distance = math.sqrt((board_x - piece_x) ** 2 + (board_y - piece_y) ** 2)
        print("start-------- distance --------start: ", distance)
        tmp = 0
        if distance < 220:
            tmp = 8
            print("200-------- distance --------200:",tmp)
        distance = distance + tmp
        print("end-------- distance --------end: ", distance)
        jump(distance)
        save_debug_creenshot(ts, im, piece_x, piece_y, board_x, board_y)
        backup_screenshot(ts)
        time.sleep(random.uniform(1, 1.1))   # 为了保证截图的时候应落稳了,多延迟一会儿

Jason

{
    "under_game_score_y": 2018,
    "press_coefficient": 3.83,
    "piece_base_height_1_2": 20,
    "piece_body_width": 70,

    "swipe" : {
      "x1": 540,
      "y1": 1514,
      "x2": 540,
      "y2": 1514
    }
}

from wechat_jump_game.

good2hub avatar good2hub commented on May 26, 2024

1514790841
手机:小米3电信版
分辨率:1920*1080
分数:10397
参数:
config.json:

{
"under_game_score_y": 300,
"press_coefficient": 3.705,
"piece_base_height_1_2": 20,
"piece_body_width": 70
}

def find_piece_and_board(im):

w, h = im.size
piece_x_sum = 0
piece_x_c = 0
piece_y_max = 0
board_x = 0
board_y = 0
scan_x_border = int(w / 8)  # 扫描棋子时的左右边界
scan_start_y = 0  # 扫描的起始y坐标
im_pixel=im.load()
# 以50px步长,尝试探测scan_start_y
for i in range(int(h / 3), int( h*2 /3 ), 50):
    last_pixel = im_pixel[0,i]
    for j in range(1, w):
        pixel=im_pixel[j,i]
        # 不是纯色的线,则记录scan_start_y的值,准备跳出循环
        if pixel[0] != last_pixel[0] or pixel[1] != last_pixel[1] or pixel[2] != last_pixel[2]:
            scan_start_y = i - 50
            break
    if scan_start_y:
        break
print("scan_start_y: ", scan_start_y)

# 从scan_start_y开始往下扫描,棋子应位于屏幕上半部分,这里暂定不超过2/3
for i in range(int(h / 3), int(h * 2 / 3)):
    for j in range(scan_x_border, w - scan_x_border):  # 横坐标方面也减少了一部分扫描开销
        pixel = im_pixel[j,i]
        # 根据棋子的最低行的颜色判断,找最后一行那些点的平均值,这个颜色这样应该 OK,暂时不提出来
        if (50 < pixel[0] < 60) and (53 < pixel[1] < 63) and (95 < pixel[2] < 110):
            piece_x_sum += j
            piece_x_c += 1
            piece_y_max = max(i, piece_y_max)

if not all((piece_x_sum, piece_x_c)):
    return 0, 0, 0, 0
piece_x = piece_x_sum / piece_x_c
piece_y = piece_y_max - piece_base_height_1_2  # 上移棋子底盘高度的一半

if piece_x < w/2:
    c=w/2
    d=w
else:
    c=0
    d=w/2

for i in range(int(h / 3), int(h * 2 / 3)):
    last_pixel = im_pixel[0, i]
    if board_x or board_y:
        break
    board_x_sum = 0
    board_x_c = 0

    for j in range(int(c),int(d)):
    #for j in range(w):
        pixel = im_pixel[j,i]
        # 修掉脑袋比下一个小格子还高的情况的 bug
        if abs(j - piece_x) < piece_body_width:
            continue

        # 修掉圆顶的时候一条线导致的小 bug,这个颜色判断应该 OK,暂时不提出来
        if abs(pixel[0] - last_pixel[0]) + abs(pixel[1] - last_pixel[1]) + abs(pixel[2] - last_pixel[2]) > 10:
            board_x_sum += j
            board_x_c += 1
    if board_x_sum:
        board_x = board_x_sum / board_x_c
last_pixel = im_pixel[board_x, i]
# 按实际的角度来算,找到接近下一个 board 中心的坐标 这里的角度应该是30°,值应该是tan 30°, math.sqrt(3) / 3
#board_y = piece_y - abs(board_x - piece_x) * math.sqrt(3) / 3
# 从上顶点往下+274的位置开始向上找颜色与上顶点一样的点,为下顶点
# 该方法对所有纯色平面和部分非纯色平面有效,对高尔夫草坪面、木纹桌面、药瓶和非菱形的碟机(好像是)会判断错误
for k in range(i + 274, i, -1):  # 274取开局时最大的方块的上下顶点距离
    pixel = im_pixel[board_x, k]
    if abs(pixel[0] - last_pixel[0]) + abs(pixel[1] - last_pixel[1]) + abs(pixel[2] - last_pixel[2]) < 10:
        break

board_y = int((i + k) / 2)
# 如果上一跳命中中间,则下个目标中心会出现r245 g245 b245的点,利用这个属性弥补上一段代码可能存在的判断错误
# 若上一跳由于某种原因没有跳到正中间,而下一跳恰好有无法正确识别花纹,则有可能游戏失败,由于花纹面积通常比较大,失败概率较低

for l in range(i, i + 200):
    pixel = im_pixel[board_x, l]

    if abs(pixel[0] - 245) == 0:

        if abs(pixel[0] - 245) + abs(pixel[1] - 245) + abs(pixel[2] - 245) == 0:
            board_y = l + 10
            break

if not all((board_x, board_y)):
    return 0, 0, 0, 0

return piece_x, piece_y, board_x, board_y

from wechat_jump_game.

yangfan21-zz avatar yangfan21-zz commented on May 26, 2024

求小米note3 的参数啊

from wechat_jump_game.

nanasen-shane avatar nanasen-shane commented on May 26, 2024

诸位求红米note4的参数QAQ
自动跳版本最高只有20咩
沮丧QAQ

from wechat_jump_game.

miyalee avatar miyalee commented on May 26, 2024

米5 用@ck2w 的参数,默认参数超不过200, 改完基本可以连着10多次击中中心
1920 x 1080
{
"under_game_score_y": 300,
"press_coefficient": 1.47,
"piece_base_height_1_2": 25,
"piece_body_width": 80
}

from wechat_jump_game.

Kryssss avatar Kryssss commented on May 26, 2024

各位求个SE的参数

from wechat_jump_game.

laobadao avatar laobadao commented on May 26, 2024

小米 MIX 2040 * 1080

"under_game_score_y":619,
"press_coefficient": 1.492,
"piece_base_height_1_2": 25,
"piece_body_width": 88,

刷到 438 就不刷了 ,学技术去了 。什么都不说了

from wechat_jump_game.

mozhuwanjieDEV avatar mozhuwanjieDEV commented on May 26, 2024

有木有魅族PRO6 PLUS的?2560x1440 ,5.7的屏幕

from wechat_jump_game.

laokangde avatar laokangde commented on May 26, 2024

魅蓝note3 1920*1080

"under_game_score_y": 300,
"press_coefficient": 1.4,
"piece_base_height_1_2": 25,
"piece_body_width": 80,

改了个1.4 25 和 80 默认参数能跑570分 改完之后1000+还在跳

from wechat_jump_game.

cubebbox avatar cubebbox commented on May 26, 2024

小米note pro 勉强可以用吧
{
"under_game_score_y": 330,
"press_coefficient": 1.178,
"piece_base_height_1_2": 23,
"piece_body_width": 100,
"swipe": {
"x1": 320,
"y1": 410,
"x2": 320,
"y2": 410
}
}

from wechat_jump_game.

zysun avatar zysun commented on May 26, 2024

@cubebbox 我也是小米note pro,用你的参数最多就运行到300

from wechat_jump_game.

BlakGriffin avatar BlakGriffin commented on May 26, 2024

求一个S7 Edge能用的参数,谢谢

from wechat_jump_game.

melooooooo avatar melooooooo commented on May 26, 2024

"under_game_score_y": 285,
"press_coefficient": 1.420,
"piece_base_height_1_2": 20,
"piece_body_width": 70,
小米4参数 1000+

from wechat_jump_game.

AC-Yoke avatar AC-Yoke commented on May 26, 2024

机型:华为荣耀8,5.2英寸。魅族pro6,5.2英寸。
分辨率(写明宽高):1920*1080 (亲测应该5.2英寸都可以照这个参数)

具体参数:

{
"under_game_score_y": 300,
"press_coefficient": 1.38,
"piece_base_height_1_2": 30,
"piece_body_width": 75
}

from wechat_jump_game.

yaowans avatar yaowans commented on May 26, 2024

同求小米note3,
自己修改了下,可跳800+,忘记截图了 -。-
{
"under_game_score_y": 300,
"press_coefficient": 1.47,
"piece_base_height_1_2": 20,
"piece_body_width": 70,
"swipe" : {
"x1": 500,
"y1": 1600,
"x2": 500,
"y2": 1602
}
}

from wechat_jump_game.

 avatar commented on May 26, 2024

小米5x,通用1920*1080只能跳100多

from wechat_jump_game.

MrLevo520 avatar MrLevo520 commented on May 26, 2024

对于自适应无视分辨率版本正在开发中,请尝鲜nightly版本

from wechat_jump_game.

lk6233160 avatar lk6233160 commented on May 26, 2024

三星S8+,关闭曲面侧屏,屏幕设置FHD+ 2220*1080
参数:
{
"under_game_score_y": 619,
"press_coefficient": 1.38,
"piece_base_height_1_2": 20,
"piece_body_width": 70,
"swipe": {
"x1": 530,
"y1": 1730,
"x2": 530,
"y2": 1730
}
}
跳到2200分手动停了

from wechat_jump_game.

liluoao avatar liluoao commented on May 26, 2024

@nanasen-shane 我红米Note4就用的默认参数,刚跳到4300多,想截个图的,再进去成绩被删了

from wechat_jump_game.

youur avatar youur commented on May 26, 2024

红米note4x参数一直不准确

from wechat_jump_game.

scholar095 avatar scholar095 commented on May 26, 2024

有没有哪位大佬有小米6的参数啊?我的一直只有50+

from wechat_jump_game.

TianfeiXu avatar TianfeiXu commented on May 26, 2024

先谢谢作者,玩的很开心。 跳了11120,关了,删游戏了。
机型:小米5
分辨率(写明宽高):1920*1080
具体参数:见 #1066 (#1066里谢了怎么修改代码)
autoju-

from wechat_jump_game.

NorthNanmu avatar NorthNanmu commented on May 26, 2024

华为P9 需要关闭手机管家中的自动分辨率
参考@breewf @AC-Yoke

    "under_game_score_y": 300,
    "press_coefficient": 1.11,
    "piece_base_height_1_2": 30,
    "piece_body_width": 75,
    "head_diameter": 60,
    "swipe": {
        "x1": 500,
        "y1": 1600,
        "x2": 500,
        "y2": 1602
    }

from wechat_jump_game.

Zhouxuan-C avatar Zhouxuan-C commented on May 26, 2024

还有在用 红米 Note的小伙伴吗?2333

:红米 Note(增强版)
:1280x720 5.5英寸

"under_game_score_y": 200,
"press_coefficient": 1.000,
"piece_base_height_1_2": 13,
"piece_body_width": 47,

我基本都是跳中间,

from wechat_jump_game.

sundice avatar sundice commented on May 26, 2024

oppo R11.分辨率1080*1920.跳到2000多没耐心跳了,参数以下。连中的几率非常高。

under_game_score_y = 300

长按的时间系数,请自己根据实际情况调节

press_coefficient = 1.0

二分之一的棋子底座高度,可能要调节

piece_base_height_1_2 = config['piece_base_height_1_2']

棋子的宽度,比截图中量到的稍微大一点比较安全,可能要调节

piece_body_width = 85

from wechat_jump_game.

winyn avatar winyn commented on May 26, 2024

机型:红米note3
分辨率(写明宽高):1080*1920
具体参数:
under_game_score_y = 300
press_coefficient = 0.98
piece_base_height_1_2 = 20
piece_body_width = 70

from wechat_jump_game.

GangZiGe avatar GangZiGe commented on May 26, 2024

@winyn 我照你说的调成0.98还是不行啊
8414b7758385596714fe269a57e105d3
还是跳两下就死

from wechat_jump_game.

hank619 avatar hank619 commented on May 26, 2024

华为p9

"under_game_score_y": 300,
"press_coefficient": 1.05,
"piece_base_height_1_2": 35,
"piece_body_width": 75,

pic

from wechat_jump_game.

XingshengLiu avatar XingshengLiu commented on May 26, 2024

@good2hub 小米3电信版定义的那个函数如何使用么?

from wechat_jump_game.

JingLuo2017 avatar JingLuo2017 commented on May 26, 2024

魅蓝note5,分辨率 1920*1080
"under_game_score_y": 300,
"press_coefficient": 1.0,
"piece_base_height_1_2": 25,
"piece_body_width": 80,
"head_diameter": 60,

from wechat_jump_game.

leon332157 avatar leon332157 commented on May 26, 2024

@livingli 谢谢啦

from wechat_jump_game.

Related Issues (20)

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.