Beispiel #1
0
 def draw_on_screen(self, screen):
     if self.speed == 0:
         rotated_image = BasicFunctions.rotate_entity(
             self.image, self.angle)
         BasicFunctions.draw_on_screen(rotated_image, screen, self.position)
     elif 0 < self.speed <= self.max_speed * 0.5:
         rotated_image = BasicFunctions.rotate_entity(
             self.image_1, self.angle)
         BasicFunctions.draw_on_screen(rotated_image, screen, self.position)
     elif self.max_speed * 0.5 < self.speed < self.max_speed:
         rotated_image = BasicFunctions.rotate_entity(
             self.image_2, self.angle)
         BasicFunctions.draw_on_screen(rotated_image, screen, self.position)
     elif self.speed == self.max_speed:
         rotated_image = BasicFunctions.rotate_entity(
             self.image_3, self.angle)
         BasicFunctions.draw_on_screen(rotated_image, screen, self.position)
Beispiel #2
0
 def draw_on_screen(self, screen):
     BasicFunctions.draw_on_screen(self.image, screen, self.position)
Beispiel #3
0
 def draw_on_screen(self, screen):
     rotated_image = BasicFunctions.rotate_entity(self.image, self.angle)
     BasicFunctions.draw_on_screen(rotated_image, screen, self.direction_xy)