level 3
killerix09
楼主
游戏叫zigzagboom,是一个不断前进的小球,触屏控制左右转,有兴趣的可以下一下看看,没空的下面上图。
我的代码如下
-- 点击函数封装
function click(x, y)
touchDown(0, x, y)
mSleep(100)
touchUp(0)
end
-- 主入口函数
function main()
logDebug('1')
click(384,371)
--logDebug(q)
while true do
repeat
x, y = findColorInRegion(0x62F9FF, 175, 975, 185, 995)
if X~=-1 and y~=-1 then
click(180,990)
logDebug('4')
end
logDebug('5')
until X~=-1 and y~=-1
logDebug('6')
repeat
logDebug('7')
x, y = findColorInRegion(0x62F9FF, 895, 1005, 905, 1015)
if X~=-1 and y~=-1 then
click(900,1010)
logDebug('8')
end
until X~=-1 and y~=-1
logDebug('9')
end
end
请无视满满的调试,已经要疯了,求大神!格式调不好了……

2015年05月21日 10点05分
1
我的代码如下
-- 点击函数封装
function click(x, y)
touchDown(0, x, y)
mSleep(100)
touchUp(0)
end
-- 主入口函数
function main()
logDebug('1')
click(384,371)
--logDebug(q)
while true do
repeat
x, y = findColorInRegion(0x62F9FF, 175, 975, 185, 995)
if X~=-1 and y~=-1 then
click(180,990)
logDebug('4')
end
logDebug('5')
until X~=-1 and y~=-1
logDebug('6')
repeat
logDebug('7')
x, y = findColorInRegion(0x62F9FF, 895, 1005, 905, 1015)
if X~=-1 and y~=-1 then
click(900,1010)
logDebug('8')
end
until X~=-1 and y~=-1
logDebug('9')
end
end
请无视满满的调试,已经要疯了,求大神!格式调不好了……
