jueves, 15 de octubre de 2015
Preparando contenedores de la clase Gato
#Preparando contenedores e imágenes de Gato...
import pygame
from pygame.locals import *
class Gato(pygame.sprite.Sprite):
speed = 5
bounce = 24
images = []
def __init__(self):
pygame.sprite.Sprite.__init__(self,self.containers)
self.image=self.images[0]
self.rect = self.image.get_rect()
def inf(self):
print self.speed
print self.bounce
print self.images
def main():
all = pygame.sprite.RenderUpdates()
Gato.containers = all
gato = Gato()
gato.inf()
if __name__=='__main__': main()
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario