没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Dim pai = 3.14159265358979323846
Dim BackgroundColor
Dim ArruratePointx,ArruratePointy,topy
Dim whitepointx,whitepointy
Dim Cheesex,Cheesey
Dim speed
Dim midx,midy//中点坐标
Dim ContinuousjumpCount = 0//连跳中心点计次
Dim ScorePlus = 0//加分的积木停留时间
Dim MyValue1,MyValue2
Dim 背景色
ShowMessage "5秒后开始"
Delay 5000
Call 获得手机分辨率()
Call 计算速度()
///////////////////////////循环部分///////////////////////////
Do
KeepCapture
Call 跳跃()
Call 随机延迟()
Delay 1000 + MyValue1 * 100 + ScorePlus
Loop
/////////////////////////////////////////////////////////////
///////////////////////////准备工作///////////////////////////
Sub 获得手机分辨率
KeepCapture
Dim BackgroundColor
Dim ArruratePointx,ArruratePointy,topy
Dim whitepointx,whitepointy
Dim Cheesex,Cheesey
Dim speed
Dim midx,midy//中点坐标
Dim ContinuousjumpCount = 0//连跳中心点计次
Dim ScorePlus = 0//加分的积木停留时间
Dim MyValue1,MyValue2
Dim 背景色
ShowMessage "5秒后开始"
Delay 5000
Call 获得手机分辨率()
Call 计算速度()
///////////////////////////循环部分///////////////////////////
Do
KeepCapture
Call 跳跃()
Call 随机延迟()
Delay 1000 + MyValue1 * 100 + ScorePlus
Loop
/////////////////////////////////////////////////////////////
///////////////////////////准备工作///////////////////////////
Sub 获得手机分辨率
KeepCapture
Dim i,j
Dim rColor
i = 0
Do
rColor = GetPixelColor(0+i,0,0)
If rColor = "000000" Then
midx = i/2
Goto 获得手机分辨率标记1
Else
i = i + 1
End If
Loop
Rem 获得手机分辨率标记1
j = 0
Do
rColor = GetPixelColor(0,0+j,0)
If rColor = "000000" Then
midy = j/2
Goto 获得手机分辨率标记2
Else
j = j + 1
//TracePrint j
End If
Loop
Rem 获得手机分辨率标记2
TracePrint "手机分辨率为: "&midx*2,midy*2
ReleaseCapture
End Sub
Dim rColor
i = 0
Do
rColor = GetPixelColor(0+i,0,0)
If rColor = "000000" Then
midx = i/2
Goto 获得手机分辨率标记1
Else
i = i + 1
End If
Loop
Rem 获得手机分辨率标记1
j = 0
Do
rColor = GetPixelColor(0,0+j,0)
If rColor = "000000" Then
midy = j/2
Goto 获得手机分辨率标记2
Else
j = j + 1
//TracePrint j
End If
Loop
Rem 获得手机分辨率标记2
TracePrint "手机分辨率为: "&midx*2,midy*2
ReleaseCapture
End Sub
剩余14页未读,继续阅读
资源评论
艮32
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功