diff options
Diffstat (limited to 'cuadrado.py~')
-rwxr-xr-x | cuadrado.py~ | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/cuadrado.py~ b/cuadrado.py~ new file mode 100755 index 0000000..c92e7c4 --- /dev/null +++ b/cuadrado.py~ @@ -0,0 +1,68 @@ +import pygame +from pygame.locals import * +from pygame.sprite import Sprite + +class Cuadrado(Sprite): + + def __init__(self,x,y): + Sprite.__init__(self) + self.image = pygame.image.load("cuadrado.png").convert_alpha() + self.rect = self.image.get_rect() + self.rect.move_ip(x,y) + + def update(self): + pass + +class Rectangulo(Sprite): + + def __init__(self,x,y): + Sprite.__init__(self) + self.image = pygame.image.load("rectangulo.png").convert_alpha() + self.rect = self.image.get_rect() + self.rect.move_ip(x,y) + + def update(self): + pass + +class Circulo(Sprite): + def __init__(self,x,y): + Sprite.__init__(self) + self.image = pygame.image.load("circulo.png").convert_alpha() + self.rect = self.image.get_rect() + self.rect.move_ip(x,y) + + def update(self): + pass + +class Cubo(Sprite): + + def __init__(self,x,y): + Sprite.__init__(self) + self.image = pygame.image.load("cubo.png").convert_alpha() + self.rect = self.image.get_rect() + self.rect.move_ip(x,y) + + def update(self): + pass + +class Triangulo(Sprite): + + def __init__(self,x,y): + Sprite.__init__(self) + self.image = pygame.image.load("triangulo.png").convert_alpha() + self.rect = self.image.get_rect() + self.rect.move_ip(x,y) + + def update(self): + pass + +class Esfera(Sprite): + + def __init__(self,x,y): + Sprite.__init__(self) + self.image = pygame.image.load("esfera.png").convert_alpha() + self.rect = self.image.get_rect() + self.rect.move_ip(x,y) + + def update(self): + pass |