if you change the size of the sprite, you need to redraw it. the bit
you should move from the constructor to the updating func (or a resize
func) is the bit that actually draws your circle onto the sprites
buffer self.image.
On Fri, Oct 8, 2010 at 11:08 AM, kevin hayes kevino...@gmail.com wrote:
Attached is the file in question, comet_fighter.py (version 0.1.0.5).
Game.menu() is supposed to show a menu. It takes the following arguments:
options, cursor, anim_wait, color=pygame.Color(0,0,0,155), border=16, sep=8
options is a list of surfaces used for the menu choices. cursor is a list
Yes, if you're not getting it then an example is probably better than more
explanation. Here's your program with the changes I had in mind.
MoveCircleSizeCircle.py
Makes a circle that changes
it's position and size by the
keyboard, 10/3/10
import pygame
pygame.init()
screen =
Your blits were copying the source to positions outside the target surface.
I always suspect this if I can't see my graphics. You can insert statements
like dlgsurface.get_rect().collidepoint(choicerect.topleft) or print
dlgsurface.get_rect().colliderect(choicerect) to tell whether the source
rect