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

[Entities] 重写僵尸AI #2

Open
Tinellie opened this issue Sep 5, 2023 · 0 comments
Open

[Entities] 重写僵尸AI #2

Tinellie opened this issue Sep 5, 2023 · 0 comments

Comments

@Tinellie
Copy link
Member

Tinellie commented Sep 5, 2023

行为逻辑

索敌

当没有目标时,处于游荡状态,

若满足下列条件之一,将会开始索敌:

  • 受击

  • 自身前方,视线范围内有可直视的敌怪

开始索敌后,若视线范围内(包括前后)有可直视的目标,将会锁定该目标

追寻

锁定目标后,进入追寻状态

调用寻路函数追寻目标,若目标移动,或路径上出现障碍物,重新计算路径

路径计算完毕后,按照路径追击目标

若无法直视目标,则不更新寻路?

有的敌怪可以存在同时多个目标,按距离智能判断哪个目标?

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