amethyst / amethyst/rustrogueliketutorial

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

Aberta
#117 5 comentários 0 reações 1 responsável Reivindicada por @thebracket Ver no GitHub
Linguagem predominante
Rust
Estrelas
970
Forks
166
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.