示例#1
0
 def move(self):
     if self.x >= -self.width:
         display.blit(self.image, (self.x, self.y))
         self.x -= self.speed
         return True
     else:
         return False
 def draw(self):
     display.blit(self.image, (self.location_x, (self.height)))
示例#3
0
 def return_self(self, radius, y, width, image):
     self.x = radius
     self.y = y
     self.width = width
     self.image = image
     display.blit(self.image, (self.x, self.y))