amethyst / amethyst/rustrogueliketutorial

2.5 Misleading text

未关闭
#157 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
970
派生
166
PR 合并指标
30 天内没有已合并 PR

描述

Near the end of the chapter the following is written:
> We also need to give the player a name; we've explicitly included names in the AI's join, so we better be sure that the player has one! Otherwise, the AI will ignore the player altogether. In `main.rs`, we'll include one in the `Player` creation:

While it's perfectly fine and reasonable to give the player a name, the AI will not ignore the player without one, as the player position is obtained outside the for loop from the system's `SystemData`. In fact the player continues to be left out of the for loop even after adding a `Name` because the iterator is also joined on the tag `Monster`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。