[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] My game so far, aka need help with movement bug
- To: pygame-users@xxxxxxxx
- Subject: [pygame] My game so far, aka need help with movement bug
- From: Michael Fiano <michael.fiano@xxxxxxxxx>
- Date: Tue, 7 Apr 2009 15:25:00 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 07 Apr 2009 15:24:46 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=7V5m08ICeXPneCjRwAJYj+QM8PuLDcP5PVY1Boesq5c=; b=F/ng6ZGADoVZOlXme2oF/5eg/wzO2ahTjvXtz6GYRQCYLfDVp1tFH3USbn9to5yJOk aCqCYJ42uDD2/BXLqOOBYaNxOkGaT0/kULa1FzP4CyJInovR3YMPKXtG6HSPMDX9pc6C x9Mg6P9EKIRtUXMUe7Bn2wVD/csDB4Qbe3fSQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=epyww8RMQqkxj+JW1apeBZ3+hJkS7e1+7upZ495vxxRhDIkQDf19BL9JTj/2Fhptd6 iDQDxI0yo7ptPKAfTXnOqGM23xlngXuD5pqb2qUiLt9Qf3wNxMMUqpHi6dpLzm5DsczW Pto+fkMYDQgGIr/oCzcpWxGDOnWi/QUe48qVY=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Not that long ago I posted to the list asking how to fix a problem with
my game: http://article.gmane.org/gmane.comp.python.pygame/17846
Patrick Mullen replied with an answer, and a lot of inspiration for
cleaning up the code. Since then there have been many changes, and
things are now starting to take shape. There is one problem we cannot
figure out. To quote our bug tracker:
"The random encounter method is still getting called if the character
is facing an obstacle and trying to move in that direction. The only
way this is possible is if stop in moving object is equal to True.
Somehow stop must be getting reset someplace in order for this to be
happening."
It is also worth noting that the player does not stop animating when
its path is blocked, and looks like it is walking on a treadmill. I
would appreciate any input on the subject. Also, feel free to just try
the game out and offer comments/critique on my disorganized,
overengineered, yet improving code. I included the latest development
snapshot of our game in this message. Also for those that would like to
follow progress on this pygame, we are hosted on launchpad:
https://code.launchpad.net/~bloodcurse/blood-curse/trunk
Thanks in advance,
Michael Fiano