amethyst / amethyst/rustrogueliketutorial

Chapter 1.5 :when the room is made to x = 0 or y = 0, the Fov is not delivered.

オープン
#117 コメント 5 件 リアクション 0 件 担当者 1 名 @thebracket が担当を希望しています GitHub で見る
主要言語
Rust
スター
970
フォーク
166
PR マージ指標
30日以内にマージされた PR はありません

説明

As you can see in the image below, when the room is made to (x = 0 or y = 0) (example: ` let test_room = Rect::new(0, 0, 30, 30);`), Fov is not reached. It seems to me that the top left wall should be visible.

![2](https://user-images.githubusercontent.com/615042/78698833-e333a500-793d-11ea-840a-3fcf20e2e0ed.png)

I saw the source code of `thebracket-lib`, and the function of `field_of_view` was originally supposed to [start from x>0 or y>0](https://github.com/thebracket/bracket-lib/blob/master/bracket-pathfinding/src/fieldofview.rs#L113). Is there any reason for that?

P,S.

I'm using machine translation, so please forgive me for the weird English :( .

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。