lmintlcx / pvzscripts Goto Github PK
View Code? Open in Web Editor NEW植物大战僵尸TAS框架 Python vs. Zombies
Home Page: https://pvz.lmintlcx.com/
License: GNU General Public License v3.0
植物大战僵尸TAS框架 Python vs. Zombies
Home Page: https://pvz.lmintlcx.com/
License: GNU General Public License v3.0
是否可以设置指定数量出怪,例如在下一波出两个铁桶
本人近日编写vb版键控脚本,对阁下的代码进行了一些参考,在使用类似方法进行模仿者选卡时,偶尔会将模仿豌豆当作模仿小喷菇选入卡槽。本人实测可通过读取年度版[[[729670]+874]+C30](折合原始版[[[6A9EC0]+774]+C18])进行选卡界面下模仿者内容的检测。
除此,模仿者选卡界面的纵坐标间距为71而非70。
建议把 pvztoolkit给集成进来
Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import pvz
当前版本: 4.0.2
在线教程: https://pvz.lmintlcx.com/scripts/
20:09:21.810 - pvz - INFO - 获取 DPI 缩放比例: 1.4997070884592854.
20:09:21.812 - pvz - INFO - 查找游戏窗口, 类名 'MainWindow', 标题 'Plants vs. Zombies', 结果 True.
20:09:21.816 - pvz - INFO - 已找到游戏 1.0.0.1051 !!!
20:09:21.820 - pvz - INFO - 更新卡槽格数 9.
20:09:21.826 - pvz - INFO - 更新场景地图 Night.
20:09:21.830 - pvz - INFO - 更新卡槽代号 [74, 61, 62, 63, 66, 65, 64, 67, 72, None].
20:09:21.835 - pvz - INFO - 查找场上玉米炮 [].
>>> pvz.slots_count
10
>>> pvz.update_game_scene()
>>> pvz.slots_count
10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.