[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] A* module using surfaces for walkability data

On Fri, Mar 27, 2009 at 2:28 PM, Marcus von Appen <mva@xxxxxxxxxxxx> wrote:
On, Fri Mar 27, 2009, Yanom Mobis wrote:

> building it in to pygame wouldn't be a good idea- it would take up
> space even if you didn't use it. After all, modularity is the soul of
> python.

Do not confuse modularity with micropackages. According to your
assumption, stuff like sound, font handling, the sprite system and
whatever else would have to be separated from pygame.
...which explains why I have mixed feelings.   Rendering fonts isn't rendering graphics to the screen, but it outputs a nice surface that can be.  Likewise, although pathfinding seems completely unrelated to graphics, I can see a pygame.Surface() instance being passed in as tremendously convenient.