Exemplo n.º 1
0
 def __init__(self,x,y,group,surf,start_score,size,color):
     Sprite.__init__(self)
     self.group = group
     self.surface = surf
     self.score = start_score
     self.size = size
     self.color = color
     self.image = system.text_return(str(self.score),self.color,self.size)
     self.rect = self.image.get_rect()
     self.rect.x = x
     self.rect.y = y
     self.add(group)
Exemplo n.º 2
0
 def update(self,loss):
     self.score += loss
     self.image = system.text_return(str(self.score),self.color,self.size)