ok, i didn't get any of that

--- On Tue, 1/27/09, Michael George <mdgeo...@cs.cornell.edu> wrote:

From: Michael George <mdgeo...@cs.cornell.edu>
Subject: Re: [pygame] Pathfinding
To: pygame-users@seul.org
Date: Tuesday, January 27, 2009, 4:38 PM

Yanom Mobis wrote:
> is it easier to make the game tile-based?
> 
> if I make every pixel a node, and there are 2 obstacles really close 
> together, how will I     make sure something 20 pixels wide doesn't try to go 
> into a 2 pixel wide opening?
> 
One possibility is to use the new convolution code in the mask module - if you 
convolve the obstacles with the shape of the object that's moving, you can do 
pathfinding in the resulting mask and it will only move where it fits.  
Depending on your situation, this might be a reasonable approach.

--Mike



      

Reply via email to