Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 573 Bytes
import pygame, os
class Shield(pygame.sprite.Sprite):
def __init__(self,x,y):
pygame.sprite.Sprite.__init__(self)
self.imageindex = 0
self.images = [pygame.image.load(os.path.join(os.curdir, 'shield.png')).convert_alpha(),
pygame.image.load(os.path.join(os.curdir, 'shield2.png')).convert_alpha(),
pygame.image.load(os.path.join(os.curdir, 'shield3.png')).convert_alpha()]
self.rect = self.image.get_rect()
self.x = x
self.y = y
self.rect = self.rect.move(x,y)
Something went wrong with that request. Please try again.