pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Find a Way

Find a Way - 0.01

Sean J McKiernan (mekire)

Tags:

Description

This is a simple pathfinding demo that I made investigating A*.

The grid has the same number of cells as my sprite project "Cabbages and Kings."
I'm hoping to apply the methods here to the AIs of my aggressive monsters.

 

Controls:

  • Mouse left button: add start/goal, draw barriers
  • Mouse right button: delete barriers

(clicking the text on the screen triggers and toggles functions if you don't want to memorize hotkeys)

HotKeys:

  • Space: Start
  • Enter: Restart
  • i: Reset to initial state
  • 1,2,3: Switch between Rook, Queen, and Knight movement
  • d: Toggle animation on/off
  • Left Shift: Toggle between true A* and alternate
  • Esc: Quit

Links

Home Page: http://code.google.com/p/find-a-way/
Source: http://code.google.com/p/find-a-way/downloads/list

Screenshot


click to view original size

Releases

Find a Way - 0.01 - Dec 3, 2011

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

No user comments have been submitted.
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
May 23, 2012

May 22, 2012


May 20, 2012

May 19, 2012

May 18, 2012

May 17, 2012


May 16, 2012


May 12, 2012


... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)