text: #!/usr/bin/env python3
  
  import utils, os, random, time, open_color, arcade
  
  utils.check_version((3,7))
  
  SCREEN_WIDTH = 800
  SCREEN_HEIGHT = 600
  SCREEN_TITLE = "Sprites Example"
  
  
  class MyGame(arcade.Window):
  
      def __init__(self):
          super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
          file_path = os.path.dirname(os.path.abspath(__file__))
          os.chdir(file_path)
          arcade.set_background_color(open_color.blue_4)
  
          self.animal_list = arcade.SpriteList()
  
  
      def setup(self):
         for i in range(20):
              animals = ['bear','buffalo','chick','chicken','cow','crocodile','dog','duck','elephant','frog','giraffe','goat','gorilla','hippo','horse','monkey','moose','narwhal','owl','panda','parrot','penguin','pig','rabbit','rhino','sloth','snake','walrus','whale','zebra']
              animal = random.choice(animals)
              x = random.randint(0,800)
              y = random.randint(0,600)
              self.animal_sprite = arcade.Sprite("assets/{animal}.png".format(animal=animal), 0.5)
              self.animal_sprite.center_x = x
              self.animal_sprite.center_y = y
              self.animal_list.append(self.animal_sprite)
  
      def on_draw(self):
          arcade.start_render()
          self.animal_list.draw()
  
  
      def update(self, delta_time):
          pass
  
  
  def main():
      """ Main method """
      window = MyGame()
      window.setup()
      arcade.run()
  
  
  if __name__ == "__main__":
      main()
  