1.设备环境:当然是模拟器了~ 我用的是分辨率600*1024 dpi160 。脚本平台的话,本次采用按键精灵安卓版。
2.实现方式:对于此游戏,操作无非两种 点&拖拽移动 所以用到函数有 单击函数 和 拖拽移动函数。
刷金:挨个点一遍、或者拖拽、或者直接录屏
升级建筑&开包:单击事件|录屏
刷火车:拖拽|录屏
总结:代码没有难度,找好坐标即可,没什么可说的。Swipe函数参数:起始横纵坐标、结束横纵坐标、移动速度(可选参数)
附源码:
布局编号 3 6 9
2 5 8
1 4 7
Swipe 369, 875, 173, 627, 3//1
Swipe 455, 835, 173, 627, 3
Swipe 533, 792, 173, 627, 3
Swipe 369, 875, 168, 475, 3//2
Swipe 455, 835, 168, 475, 3
Swipe 533, 792, 168, 475, 3
Swipe 369, 875, 166, 346, 3//3
Swipe 455, 835, 166, 346, 3
Swipe 533, 792, 166, 346, 3
Swipe 369, 875, 305, 547, 3//4
Swipe 455, 835, 305, 547, 3
Swipe 533, 792, 305, 547, 3
Swipe 369, 875, 307, 400, 3//5
Swipe 455, 835, 307, 400, 3
Swipe 533, 792, 307, 400, 3
Swipe 369, 875, 307, 265, 3//6
Swipe 455, 835, 307, 265, 3
Swipe 533, 792, 307, 265, 3
Swipe 369, 875, 449, 476, 3//7
Swipe 455, 835, 449, 476, 3
Swipe 533, 792, 449, 476, 3
Swipe 369, 875, 448, 329, 3//8
Swipe 455, 835, 448, 329, 3
Swipe 533, 792, 448, 329, 3
Swipe 369, 875, 451, 192, 3//9
Swipe 455, 835, 451, 192, 3
Swipe 533, 792, 451, 192, 3