放一小段源码吸引火力
w,h = getResolutionRatio();--获取分辨率
function Click1()--第1个洞
local dbg = isColor(0.3167*w,0.4125*h,0x323266,90);--是否有东西出现
if not dbg then--
local gw,x,y = findColorFuzzy(0xEF4138,90,0.3111*w,0.36458*h,0.4722*w,0.4625*h);--找到怪物
if gw then--如果有怪物出现
touchDown(0.3167*w,0.4125*h);--点击怪物
end
end
end
w,h = getResolutionRatio();--获取分辨率
function Click1()--第1个洞
local dbg = isColor(0.3167*w,0.4125*h,0x323266,90);--是否有东西出现
if not dbg then--
local gw,x,y = findColorFuzzy(0xEF4138,90,0.3111*w,0.36458*h,0.4722*w,0.4625*h);--找到怪物
if gw then--如果有怪物出现
touchDown(0.3167*w,0.4125*h);--点击怪物
end
end
end