def __init__(self):
    'Call the parent class and set up the window.'
    super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
    (self.scene, self.player_sprite) = (None, None)
    self.physics_engine = None
    self.left_pressed = False
    self.right_pressed = False
    self.camera = None
    self.gui_camera = None
    self.score = 0
    self.lives_left = 0
    self.timer = 0
    self.fps = FPSCounter()
    self.up = (key.UP, key.W)
    self.down = (key.DOWN, key.S)
    self.left = (key.LEFT, key.A)
    self.right = (key.RIGHT, key.D)
    self.tile_map = None
    self.end_of_map = 0
    self.level = 1
    self.collect_coin_sound = arcade.load_sound(':resources:sounds/coin1.wav')
    self.jump_sound = arcade.load_sound(':resources:sounds/jump1.wav')
    self.game_over_sound = arcade.load_sound(':resources:sounds/gameover1.wav')
    arcade.set_background_color(arcade.csscolor.CORNFLOWER_BLUE)
Call the parent class and set up the window.
def __init__(self):
    
    super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
    (self.scene, self.player_sprite) = (None, None)
    self.physics_engine = None
    self.left_pressed = False
    self.right_pressed = False
    self.camera = None
    self.gui_camera = None
    self.score = 0
    self.lives_left = 0
    self.timer = 0
    self.fps = FPSCounter()
    self.up = (key.UP, key.W)
    self.down = (key.DOWN, key.S)
    self.left = (key.LEFT, key.A)
    self.right = (key.RIGHT, key.D)
    self.tile_map = None
    self.end_of_map = 0
    self.level = 1
    self.collect_coin_sound = arcade.load_sound(':resources:sounds/coin1.wav')
    self.jump_sound = arcade.load_sound(':resources:sounds/jump1.wav')
    self.game_over_sound = arcade.load_sound(':resources:sounds/gameover1.wav')
    arcade.set_background_color(arcade.csscolor.CORNFLOWER_BLUE)