彈彈堂大冒險用自動精靈測算屏距

{"repeatCount":-1,"pauseOnFail":false,"count":7,"minVerCode":58,"minVerName":"2.11.0","screenWidth":720,"screenHeight":1280,"screenDpi":2,"lastSaveScreenWidth":1280,"lastSaveScreenHeight":720,"lastSaveScreenDpi":2,"savedVerCode":2026000,"savedVerName":"2.26.0","description":"","delay":"0","delayUnit":1}
{"type":"設置變量","delayUnit":1,"vars":[{"name":"我","value":{"varType":"position","varScope":"script","showInputInObjectSubVar":false,"mustInput":true,"showInputContentAlign":"left","position":{"type":"color","x":"86.6%","y":"20.4%","color":"#0033cc","limitArea":"85.5% 0% 107% 23.1%","similarPercent":100},"findAll":false}},{"name":"敵","value":{"varType":"position","varScope":"script","showInputInObjectSubVar":false,"mustInput":true,"showInputContentAlign":"left","position":{"type":"color","x":"101.7%","y":"19.7%","color":"#ff0000","limitArea":"85.5% 0% 107% 23.1%","similarPercent":100},"findAll":false}}]}
{"type":"設置變量","delayUnit":1,"vars":[{"name":"屏距","value":{"varType":"expression","varScope":"script","showInputInObjectSubVar":false,"mustInput":true,"showInputContentAlign":"left","valueExp":"Math.round((Math.abs(我.x-敵.x)*11.7\/99)*10)\/10"}},{"name":"屏高","value":{"varType":"expression","varScope":"script","showInputInObjectSubVar":false,"mustInput":true,"showInputContentAlign":"left","valueExp":"Math.round((我.y-敵.y)*117\/99*9\/16)\/10"}},{"name":"pg","value":{"varType":"expression","varScope":"script","showInputInObjectSubVar":false,"mustInput":true,"showInputContentAlign":"left","valueExp":"Math.round((我.y-敵.y)*0.7\/1.80)\/10"}}]}
{"type":"系統(tǒng)提示","delayUnit":1,"promptType":"toast","promptTitle":"","showPosition":"default","playAudio":"false","useVibrator":false,"__vars":{"promptText":{"varType":"expression","varScope":"script","mustInput":true,"valueExp":"Math.round((90-屏距-屏高\/2)*10)\/10"}}}
{"type":"控制執(zhí)行","delayUnit":1,"controlRunType":"pause","ContinueParentExecute":false}
{"type":"設置變量","delayUnit":1,"vars":[{"name":"光標位置","value":{"varType":"position","varScope":"script","showInputInObjectSubVar":false,"mustInput":true,"showInputContentAlign":"left","position":{"type":"color","x":"53.8%","y":"89.7%","color":"#6dffff","limitArea":"19.9% 89.3% 83.4% 91.5%","similarPercent":95},"findAll":false}}]}
{"type":"設置變量","delayUnit":1,"vars":[{"name":"力度","value":{"varType":"expression","varScope":"script","showInputInObjectSubVar":false,"mustInput":true,"showInputContentAlign":"left","valueExp":"100-(987-光標位置.x)\/(374\/50)"}}]}
{"type":"點擊","delayUnit":1,"posData":{"type":"location","x":"99.3%","y":"86.4%"},"__vars":{"duration":{"varType":"expression","varScope":"script","mustInput":true,"valueExp":"力度*4000\/70"}}}
自動精靈新建腳本,然后把新建的腳本內(nèi)容換成上面的內(nèi)容,然后根據(jù)自己的手機修改