[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Pathfinding
I used this AStar in some of my games, and it works very well:
http://www.pygame.org/projects/9/195/
On Sun, 25 Jan 2009 19:16:38 -0800 (PST)
Yanom Mobis <yanom@xxxxxxxxxxxxxx> wrote:
> 1) How is pathfinding done?
> 2) How do you prevent a moving sprite from being caught in a v-shaped rut made of obstacles? Like this:
> __
> A -> # | B
> __|
>
>
> Where A and B are the points the sprite needs to travel,
> # is the sprite,
> -> is the direction the sprite is moving, and
> _ and | are obstacles?
>
>
>
--
evil monkey <there-is-an@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>