amethyst / amethyst/rustrogueliketutorial

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

Đang mở
#117 5 bình luận 0 reaction 1 người được giao Được @thebracket nhận Xem trên GitHub
Ngôn ngữ chính
Rust
Star
970
Fork
166
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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 :( .

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.