amethyst / amethyst/bracket-lib

Feature request: DijkstraMap find_lowest_exits function

Aberta
#249 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Rust
Estrelas
1.7k
Forks
126
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

In a 4-way movement roguelike, there are cases where there can be two movement directions that cost the same amount in the ```DijkstraMap```. This is a request to add a function to return a vector of the lowest exit indices for further processing.

You can see the issue this causes for monster movement with only having ```find_lowest_exit``` in HandsOnRust: they favor moving in dog legs chasing the player east/west and will never try moving north/south towards the player if the player moves east/west and is aligned with the monster.

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.