Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

方向键判断 #5

Open
chenyuzhuGit opened this issue Oct 15, 2024 · 1 comment
Open

方向键判断 #5

chenyuzhuGit opened this issue Oct 15, 2024 · 1 comment

Comments

@chenyuzhuGit
Copy link

Y方向的距离判断,为什么移动方向是RIGHT,不应该是UP或DOWN嘛
Uploading 1729006724044.jpg…

@chenyuzhuGit
Copy link
Author

补充:main.py
elif monster_box[1] - hero_xywh[1] < 0 and monster_box[0] - hero_xywh[0] > 0:
# y方向 小于攻击距离
if abs(monster_box[1] - hero_xywh[1]) < thy:
action_cache = move(direct="RIGHT", material=True, action_cache=action_cache,
press_delay=press_delay,
release_delay=release_delay)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant