[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pygame] Got it!
- To: PyGame Users <pygame-users@seul.org>
- Subject: [pygame] Got it!
- From: Magnus Lie Hetland <magnus@hetland.org>
- Date: Sun, 13 Jan 2002 06:14:59 +0100
- Delivered-To: archiver@seul.org
- Delivered-To: pygame-users-outgoing@seul.org
- Delivered-To: pygame-users@seul.org
- Delivery-Date: Sun, 13 Jan 2002 00:15:01 -0500
- Mail-Followup-To: PyGame Users <pygame-users@seul.org>
- Reply-To: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-Agent: Mutt/1.2.5i
After some standard debugging (what works, what doesn't, and what's
the difference?) I found that the difference was this: I used a flag
to check whether the startup screen was already drawn to avoid drawing
it several times; I hadn't done that with the game over screen. Why
that matters, I don't know, but the repeated drawing somehow destroyed
it. By adding a "game_over_drawn" flag, things seem to work just fine.
Perhaps there should be a list of things that might trip up the alpha
handling? Some sort of "Alpha FAQ" or something? It seems there have
been other questions about this too...
--
Magnus Lie Hetland The Anygui Project
http://hetland.org http://anygui.org
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org