[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] more of a game dev question...



steve rowley wrote:

> but i thought i'd ask anyway.
> i'm writing a chutes and ladders type of game. were there are floors
> connected by ladders, and the monters chase you around the different levels.
> 
> what do you think is the best way to write the monster chase algorithm?

If you want to see a working example check out PyRunner
(http://members.home.net/paulsid/pyrunner/).  There are two versions:  the
"dumb" movement code that's used in the game, and there's also some commented
out "smart" movement code which made the game way too hardxtremely hard.

There are certainly better ways to write such code, but PyRunner is a similar
type of game to what you're describing so it might be useful to look at as a
starting point.

It's inteteresting that "smart-but-not-too-smart" AI code is usually much
harder to write than "super-smart" code...

-- 
======================================================================
Paul Sidorsky                                          Calgary, Canada
paulsid@home.com                      http://members.home.net/paulsid/
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org