''' Created on Jun 19, 2011 @author: chenowet ''' import pygame from pygame.locals import * from pygame import Color class Mover: def __init__(self, centerX, centerY, radius, color): self.rect = Rect(centerX-radius, centerY-radius, radius*2, radius*2) self.color = color self.blobimg = pygame.image.load("blob4.png") def draw(self, surface): pygame.draw.circle(surface, self.color, self.rect.center, self.rect.width//2) def draw_special(self, surface): surface.blit(self.blobimg, self.rect.topleft) def move(self, dx, dy): self.rect = self.rect.move(dx,dy) def relocate(self, pos): self.rect.topleft = pos