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

Re: [pygame] PyScribbles - Eraser



Nick Dienstbier wrote:
Ok, so I got pygame working, and I'm playing with pyscribbles, a game
from the 65k contest or whatever... And I'm trying to add an eraser,
I'm not sure how I should do it. Should I just draw a white rectangle
where the mouse is, or what? Any Ideas? (The current code I have is at
http://code.bulix.org/mxs0ro-22805)

well, assuming, as the program was written for a contest, that it probably doesn't use layers,
then that's all you really can do, isn't it (is use white.)
You could use a circle instead of a rectangle, I suppose.
Or you could do it to where it fades the alpha value a little, but you have to rub it back and forth
so it works like a real eraser.
That may be too much trouble, though.
just some thoughts.
I'm not familiar with pyScribbles, so sorry if anything I said was untrue about it.
-Luke