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

Re: [pygame] Got it!



It sounds like that without checking that flag, you were drawing
alpha-channeled colours onto the same pixels over and over again, which
would eventually result in black (or fully coloured) pixels.

Cheers,
            Nat.

________________________________
Dr. Nathaniel Pryce
B13media Ltd.
40-41 Whiskin St, London, EC1R 0BP, UK
http://www.b13media.com

----- Original Message -----
From: "Magnus Lie Hetland" <magnus@hetland.org>
To: "PyGame Users" <pygame-users@seul.org>
Sent: Sunday, January 13, 2002 5:14 AM
Subject: [pygame] Got it!


> 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

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org