text: import arcade
  import os
  
  SCREEN_WIDTH = 800
  SCREEN_HEIGHT = 600
  LINE_HEIGHT = 20
  CHARACTER_SCALING = 0.5
  
  
  class MyTestWindow(arcade.Window):
  
      def __init__(self, width, height, title):
          super().__init__(width, height, title)
  
          arcade.set_background_color(arcade.color.AMAZON)
  
          self.character_list = arcade.SpriteList()
          self.character_sprite = arcade.Sprite(":resources:images/animated_characters/female_person/femalePerson_idle.png", CHARACTER_SCALING)
          self.character_sprite.center_x = 250
          self.character_sprite.center_y = 250
          self.character_sprite.change_x = 5
          self.character_sprite.change_y = 5
          self.character_list.append(self.character_sprite)
  
          self.wall_list = arcade.SpriteList()
  
          sprite = arcade.Sprite(":resources:images/tiles/boxCrate_double.png", CHARACTER_SCALING)
          sprite.position = (330, 330)
          sprite.angle = 90
          self.wall_list.append(sprite)
  
          sprite = arcade.Sprite(":resources:images/tiles/boxCrate_double.png", CHARACTER_SCALING)
          sprite.position = (170, 170)
          sprite.angle = 45
          self.wall_list.append(sprite)
  
          self.physics_engine = arcade.PhysicsEngineSimple(self.character_sprite, self.wall_list)
  
      def on_draw(self):
          arcade.start_render()
          self.wall_list.draw()
          self.character_list.draw()
  
      def update(self, delta_time):
          self.physics_engine.update()
  
      def switch(self):
          self.character_sprite.change_x = -5
          self.character_sprite.change_y = -5
  
  
  def test_main():
      window = MyTestWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Test Text")
      window.test(10)
      window.switch()
      window.test(20)
      window.close()
      # Force window close and garbage collection to allow unit tests to run all
      # in a row.
      arcade.close_window()
  