手指精灵吧 关注:120贴子:397
  • 0回复贴,共1

判断画面静止函数

只看楼主收藏回复

function HuanCun(x,y,x1,y1) ---判断一块区域是否没有变动
keepScreen(true);Zuo_new = 0
for u = x, x1, 2 do
for i = y, y1, 2 do
Zuo_new = Zuo_new + getColor(u, i)
end
end
keepScreen(false)
if Zuo_old == Zuo_new then
return false
end
Zuo_old = Zuo_new
return true
end


IP属地:广东来自Android客户端1楼2016-05-22 14:33回复