Re: [pygame] Fugu's Friend

2007-04-27 Thread Kamilche

Will McGugan wrote:


Wow! Nice work. A+ for the A*! :-)

I noticed that turtle can't fit through the diagonal spaces between 
blocks. Must be the hard shell!


Actually, that was intentional. The first time I encountered an astar 
pathfinding routine written in Pygame, it let them 'cheat' by going 
between diagonally lined up blocks. You can disallow it by having your 
routine check diagonal blocks in addition to blocks to the left and 
right. It has a side effect of allowing the path to go in a diagonal 
direction too.



Feeling a blog coming on...


I'll have to go check it out! I like your blog. :-)

--Kamilche



Re: [pygame] Fugu's Friend

2007-04-27 Thread Will McGugan

Kamilche wrote:

Well, I was inspired by Fugu, so I wrote a variation of it called 
"Fugu's Friend" that displays an animated turtle that rotates to face 
the correct direction for movement, toggles fullscreen mode on 
alt-enter, displays info such as FPS and current mouse position, lets 
you toggle a 'game throttle' to avoid 100% cpu usage, lets you change 
the speed at which the turtle swims, and lets you change paths 
whenever you click, throwing away the old path and starting a new path.


I hope you find it entertaining or useful.


Wow! Nice work. A+ for the A*! :-)

I noticed that turtle can't fit through the diagonal spaces between 
blocks. Must be the hard shell!


Feeling a blog coming on...

Will