Example #1
0
 def __init__(self, bg_filename):
     pygame.sprite.Sprite.__init__(self)
     self.image, self.rect = load_image(bg_filename, -1)
     self.surface.blit(self.image, (0, 0))
Example #2
0
 def __init__(self, data_path):
     pygame.sprite.Sprite.__init__(self)
     self.image, self.rect = load_image(os.path.join(data_path, "selection_target.png"))
     self.image.set_colorkey((255, 255, 255))