import arcade
import os

SPRITE_SCALING = 0.5
SPRITE_NATIVE_SIZE = 128
SPRITE_SIZE = int(SPRITE_NATIVE_SIZE * SPRITE_SCALING)

SCREEN_WIDTH = SPRITE_SIZE * 14
SCREEN_HEIGHT = SPRITE_SIZE * 10

MOVEMENT_SPEED = 5
COIN_SCALE = 0.7

class Room:
    """
    This class holds all the information about the
    different rooms.
    """
    def __init__(self):
        # You may want many lists. Lists for coins, monsters, etc.
        self.wall_list = None
        self.coin_list = None
        self.door_list = None
        self.smallpotion_list = None
        self.bigpotion_list = None
        # This holds the background images. If you don't want changing
        # background images, you can delete this part.
        self.background = None
        self.score = 0



def setup_room_1():
    """
    Create and return room 1.
    If your program gets large, you may want to separate this into different
    files.
    """
    room = Room()

    """ Set up the game and initialize the variables. """
    # Sprite lists
    

    room.wall_list = arcade.SpriteList()
    room.door_list = arcade.SpriteList()
    room.coin_list = arcade.SpriteList()
   
    room.smallpotion_list = arcade.SpriteList()
    room.bigpotion_list = arcade.SpriteList()

    for y in (0, SCREEN_HEIGHT - SPRITE_SIZE):
        # Loop for each box going across
        for x in range(0, SCREEN_WIDTH, SPRITE_SIZE):
            wall = arcade.Sprite("gravel_dirt.png", SPRITE_SCALING)
            wall.left = x
            wall.bottom = y
            room.wall_list.append(wall)

    # Create left and right column of boxes
    for x in (0, SCREEN_WIDTH - SPRITE_SIZE):
        # Loop for each box going across
        for y in range(SPRITE_SIZE, SCREEN_HEIGHT - SPRITE_SIZE, SPRITE_SIZE):
            # Skip making a block 4 and 5 blocks up on the right side
            if (y != SPRITE_SIZE * 4 and y != SPRITE_SIZE * 5) or x == 0:
                wall = arcade.Sprite("gravel_dirt.png", SPRITE_SCALING)
                wall.left = x
                wall.bottom = y
                room.wall_list.append(wall)
    for x in (0, SCREEN_WIDTH - SPRITE_SIZE):
        # Loop for each box going across
        for y in range(SPRITE_SIZE, SCREEN_HEIGHT - SPRITE_SIZE, SPRITE_SIZE):            
            if not (y != SPRITE_SIZE * 4 and y != SPRITE_SIZE * 5) or x == 0:
                door = arcade.Sprite("fence.png", SPRITE_SCALING)
                door.left = x
                door.bottom = y
                room.door_list.append(door)

    wall = arcade.Sprite("gravel_dirt.png", SPRITE_SCALING)
    wall.left = 7 * SPRITE_SIZE
    wall.bottom = 5 * SPRITE_SIZE
    room.wall_list.append(wall)
    
    # If you want coins or monsters in a level, then add that code here.

    # Load the background image for this level.
    room.background = arcade.load_texture("g.png")
    for i in range(300,600,75):
        coin = arcade.Sprite("coin.png",COIN_SCALE)
        coin.center_x = i
        coin.center_y = 500
        room.coin_list.append(coin)
    
    smallpotion = arcade.Sprite("big.png",0.05)
    smallpotion.center_x = 100
    smallpotion.center_y = 900
    room.smallpotion_list.append(smallpotion)
    return room


def setup_room_2():
    """
    Create and return room 2.
    """
    room = Room()
    
    """ Set up the game and initialize the variables. """
    # Sprite lists
    room.door_list = arcade.SpriteList()
    room.wall_list = arcade.SpriteList()
    room.coin_list = arcade.SpriteList()
    room.smallpotion_list = arcade.SpriteList()
    room.bigpotion_list = arcade.SpriteList()
    # -- Set up the walls
    # Create bottom and top row of boxes
    # This y loops a list of two, the coordinate 0, and just under the top of window
    for y in (0, SCREEN_HEIGHT - SPRITE_SIZE):
        # Loop for each box going across
        for x in range(0, SCREEN_WIDTH, SPRITE_SIZE):
            wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
            wall.left = x
            wall.bottom = y
            room.wall_list.append(wall)

    # Create left and right column of boxes
    for x in (0, SCREEN_WIDTH - SPRITE_SIZE):
        # Loop for each box going across
        for y in range(SPRITE_SIZE, SCREEN_HEIGHT - SPRITE_SIZE, SPRITE_SIZE):
            # Skip making a block 4 and 5 blocks up
            if (y != SPRITE_SIZE * 4 and y != SPRITE_SIZE * 5) or x != 0:
                wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
                wall.left = x
                wall.bottom = y
                room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 1 * SPRITE_SIZE
    wall.bottom = 6 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 1 * SPRITE_SIZE
    wall.bottom = 3 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 2 * SPRITE_SIZE
    wall.bottom = 5.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 2 * SPRITE_SIZE
    wall.bottom = 3.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 3 * SPRITE_SIZE
    wall.bottom = 3.5 * SPRITE_SIZE
    room.wall_list.append(wall)
    
    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 4 * SPRITE_SIZE
    wall.bottom = 3.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 4 * SPRITE_SIZE
    wall.bottom = 4.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 2 * SPRITE_SIZE
    wall.bottom = 5.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 2 * SPRITE_SIZE
    wall.bottom = 6.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 3 * SPRITE_SIZE
    wall.bottom = 6.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 4 * SPRITE_SIZE
    wall.bottom = 6.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 5 * SPRITE_SIZE
    wall.bottom = 6.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 6 * SPRITE_SIZE
    wall.bottom = 6.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 6 * SPRITE_SIZE
    wall.bottom = 5.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 6 * SPRITE_SIZE
    wall.bottom = 4.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 4 * SPRITE_SIZE
    wall.bottom = 2.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 6 * SPRITE_SIZE
    wall.bottom =3.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 6 * SPRITE_SIZE
    wall.bottom = 4.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 6 * SPRITE_SIZE
    wall.bottom = 0.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 6 * SPRITE_SIZE
    wall.bottom = 1.5 * SPRITE_SIZE
    room.wall_list.append(wall)


    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 7 * SPRITE_SIZE
    wall.bottom = 3.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 7 * SPRITE_SIZE
    wall.bottom = 1.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 8 * SPRITE_SIZE
    wall.bottom = 1.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 8 * SPRITE_SIZE
    wall.bottom = 3.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 9 * SPRITE_SIZE
    wall.bottom = 1.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 10 * SPRITE_SIZE
    wall.bottom = 1.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 10 * SPRITE_SIZE
    wall.bottom = 2.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 10 * SPRITE_SIZE
    wall.bottom = 3.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 10 * SPRITE_SIZE
    wall.bottom = 4.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 8 * SPRITE_SIZE
    wall.bottom = 4.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 10 * SPRITE_SIZE
    wall.bottom = 5.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 10 * SPRITE_SIZE
    wall.bottom = 6.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 9 * SPRITE_SIZE
    wall.bottom = 6.5 * SPRITE_SIZE
    room.wall_list.append(wall)


    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 8 * SPRITE_SIZE
    wall.bottom = 6.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 8 * SPRITE_SIZE
    wall.bottom = 7.5 * SPRITE_SIZE
    room.wall_list.append(wall)

    wall = arcade.Sprite("stone_snow.png", SPRITE_SCALING)
    wall.left = 8 * SPRITE_SIZE
    wall.bottom = 8 * SPRITE_SIZE
    room.wall_list.append(wall)
    room.background = arcade.load_texture("g.png")

    bigpotion = arcade.Sprite("small.png",0.05)
    bigpotion.center_x = 800
    bigpotion.center_y = 100
    room.bigpotion_list.append(bigpotion)
    return room


class MyGame(arcade.Window):
    """ Main application class. """

    def __init__(self, width, height):
        """
        Initializer
        """
        super().__init__(width, height,"Tocate el pnnywise")

        # Set the working directory (where we expect to find files) to the same
        # directory this .py file is in. You can leave this out of your own
        # code, but it is needed to easily run the examples using "python -m"
        # as mentioned at the top of this program.
        file_path = os.path.dirname(os.path.abspath(__file__))
        os.chdir(file_path)

        # Sprite lists
        self.current_room = 0

        # Set up the player
        self.game_over = False
        self.door_list = None
        self.rooms = None
        self.score = 0
        self.coin_list = None
        self.player_sprite = None
        self.physics_engine = None
        self.smallpotion_list = None
        self.bigpotion_list = None
    def setup(self):
        """ Set up the game and initialize the variables. """
        # Set up the player
        self.player_sprite =  arcade.AnimatedWalkingSprite()
        self.score = 0
        self.coin_list = arcade.SpriteList()
        self.smallpotion_list = arcade.SpriteList()
        self.bigpotion_list = arcade.SpriteList()
        self.player_sprite.center_x = 100
        self.player_sprite.center_y = 150
        character_scale = 0.75
        self.player_sprite.stand_right_textures = []
        self.player_sprite.stand_right_textures.append(arcade.load_texture("zombie_stand.png",
                                                                    scale=character_scale))
        self.player_sprite.stand_left_textures = []
        self.player_sprite.stand_left_textures.append(arcade.load_texture("zombie_stand.png",
                                                                   scale=character_scale, mirrored=True))

        self.player_sprite.walk_right_textures = []

        self.player_sprite.walk_right_textures.append(arcade.load_texture("zombie_walk1.png",
                                                                   scale=character_scale))
        self.player_sprite.walk_right_textures.append(arcade.load_texture("zombie_walk2.png",
                                                                   scale=character_scale))

        self.player_sprite.walk_left_textures = []

        self.player_sprite.walk_left_textures.append(arcade.load_texture("zombie_walk1.png",
                                                                  scale=character_scale, mirrored=True))
        self.player_sprite.walk_left_textures.append(arcade.load_texture("zombie_walk2.png",
                                                                  scale=character_scale, mirrored=True))


        # Our list of rooms
        self.rooms = []

        # Create the rooms. Extend the pattern for each room.
        room = setup_room_1()
        self.rooms.append(room)

        room = setup_room_2()
        self.rooms.append(room)

        # Our starting room number
        self.current_room = 0

        # Create a physics engine for this room
        self.physics_engine = arcade.PhysicsEngineSimple(self.player_sprite, self.rooms[self.current_room].wall_list)
        self.physics_engine = arcade.PhysicsEngineSimple(self.player_sprite, self.rooms[self.current_room].door_list)


    def on_draw(self):
        """
        Render the screen.
        """

        # This command has to happen before we start drawing
        

        arcade.start_render()

        # Draw the background texture
        arcade.draw_texture_rectangle(SCREEN_WIDTH // 2, SCREEN_HEIGHT // 2,
                                      SCREEN_WIDTH, SCREEN_HEIGHT, self.rooms[self.current_room].background)
        
        # Draw all the walls in this room
     

        self.rooms[self.current_room].door_list.draw()
        self.rooms[self.current_room].wall_list.draw()
        self.rooms[self.current_room].coin_list.draw()
        self.rooms[self.current_room].bigpotion_list.draw()
        self.rooms[self.current_room].smallpotion_list.draw()
        # If you have coins or monsters, then copy and modify the line
        # above for each list.
        output = "Score: {}".format(self.score)
        arcade.draw_text(output, 10, 20, arcade.color.WHITE, 14)

        self.player_sprite.draw()

    def on_key_press(self, key, modifiers):
        """Called whenever a key is pressed. """

        if key == arcade.key.W:
            self.player_sprite.change_y = MOVEMENT_SPEED
        elif key == arcade.key.S:
            self.player_sprite.change_y = -MOVEMENT_SPEED
        elif key == arcade.key.A:
            self.player_sprite.change_x = -MOVEMENT_SPEED
        elif key == arcade.key.D:
            self.player_sprite.change_x = MOVEMENT_SPEED
    def on_key_release(self, key, modifiers):
        """Called when the user releases a key. """

        if key == arcade.key.W or key == arcade.key.S:
            self.player_sprite.change_y = 0
        elif key == arcade.key.A or key == arcade.key.D:
            self.player_sprite.change_x = 0

    def update(self, delta_time):
        """ Movement and game logic """
            

        self.player_sprite.update_animation()
        # Call update on all sprites (The sprites don't do much in this
        # example though.)
        self.physics_engine.update() 

        # Do some logic here to figure out what room we are in, and if we need to go
        # to a different room.
        if self.player_sprite.center_x > SCREEN_WIDTH and self.current_room == 0:
            self.current_room = 1
            self.physics_engine = arcade.PhysicsEngineSimple(self.player_sprite,
                                                             self.rooms[self.current_room].wall_list)
            self.player_sprite.center_x = 0
        elif self.player_sprite.center_x < 0 and self.current_room == 1:
            self.current_room = 0
            self.physics_engine = arcade.PhysicsEngineSimple(self.player_sprite,
                                                             self.rooms[self.current_room].wall_list)
            self.player_sprite.center_x = SCREEN_WIDTH
        hit_list = arcade.check_for_collision_with_list(self.player_sprite,self.rooms[self.current_room].coin_list)
        hit_list2 = arcade.check_for_collision_with_list(self.player_sprite,self.rooms[self.current_room].bigpotion_list)
        hit_list3 = arcade.check_for_collision_with_list(self.player_sprite,self.rooms[self.current_room].smallpotion_list)
        
        for coin in hit_list:
            coin.kill()
            self.score += 1
            my_sound = arcade.load_sound("coinsound.wav")
            arcade.play_sound(my_sound)
        if self.score == 4:
            for i in self.rooms[self.current_room].door_list:
                i.kill()
                your_sound = arcade.load_sound("door.wav")
                arcade.play_sound(your_sound)

        for smallpotion in hit_list3:
            smallpotion.kill()
            self.player_sprite.scale=0.5
            tu_sound = arcade.load_sound("shrink.wav")
            arcade.play_sound(tu_sound)
        
        for bigpotion in hit_list2:
            bigpotion.kill()
            self.player_sprite.scale=1
            yo_sound = arcade.load_sound("grow.wav")
            arcade.play_sound(yo_sound)
        


def main():
    """ Main method """
    window = MyGame(SCREEN_WIDTH, SCREEN_HEIGHT)
    window.setup()
    arcade.run()


if __name__ == "__main__":
    main()
[((1087, 1106), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (1104, 1106), False, 'import arcade\n'), ((1129, 1148), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (1146, 1148), False, 'import arcade\n'), ((1171, 1190), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (1188, 1190), False, 'import arcade\n'), ((1225, 1244), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (1242, 1244), False, 'import arcade\n'), ((1272, 1291), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (1289, 1291), False, 'import arcade\n'), ((2599, 2647), 'arcade.Sprite', 'arcade.Sprite', (['"""gravel_dirt.png"""', 'SPRITE_SCALING'], {}), "('gravel_dirt.png', SPRITE_SCALING)\n", (2612, 2647), False, 'import arcade\n'), ((2903, 2931), 'arcade.load_texture', 'arcade.load_texture', (['"""g.png"""'], {}), "('g.png')\n", (2922, 2931), False, 'import arcade\n'), ((3136, 3166), 'arcade.Sprite', 'arcade.Sprite', (['"""big.png"""', '(0.05)'], {}), "('big.png', 0.05)\n", (3149, 3166), False, 'import arcade\n'), ((3494, 3513), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (3511, 3513), False, 'import arcade\n'), ((3536, 3555), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (3553, 3555), False, 'import arcade\n'), ((3578, 3597), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (3595, 3597), False, 'import arcade\n'), ((3627, 3646), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (3644, 3646), False, 'import arcade\n'), ((3674, 3693), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (3691, 3693), False, 'import arcade\n'), ((4698, 4745), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (4711, 4745), False, 'import arcade\n'), ((4861, 4908), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (4874, 4908), False, 'import arcade\n'), ((5024, 5071), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (5037, 5071), False, 'import arcade\n'), ((5189, 5236), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (5202, 5236), False, 'import arcade\n'), ((5354, 5401), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (5367, 5401), False, 'import arcade\n'), ((5523, 5570), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (5536, 5570), False, 'import arcade\n'), ((5688, 5735), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (5701, 5735), False, 'import arcade\n'), ((5853, 5900), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (5866, 5900), False, 'import arcade\n'), ((6018, 6065), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (6031, 6065), False, 'import arcade\n'), ((6183, 6230), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (6196, 6230), False, 'import arcade\n'), ((6348, 6395), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (6361, 6395), False, 'import arcade\n'), ((6513, 6560), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (6526, 6560), False, 'import arcade\n'), ((6678, 6725), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (6691, 6725), False, 'import arcade\n'), ((6843, 6890), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (6856, 6890), False, 'import arcade\n'), ((7008, 7055), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (7021, 7055), False, 'import arcade\n'), ((7173, 7220), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (7186, 7220), False, 'import arcade\n'), ((7338, 7385), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (7351, 7385), False, 'import arcade\n'), ((7502, 7549), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (7515, 7549), False, 'import arcade\n'), ((7667, 7714), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (7680, 7714), False, 'import arcade\n'), ((7832, 7879), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (7845, 7879), False, 'import arcade\n'), ((7999, 8046), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (8012, 8046), False, 'import arcade\n'), ((8164, 8211), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (8177, 8211), False, 'import arcade\n'), ((8329, 8376), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (8342, 8376), False, 'import arcade\n'), ((8494, 8541), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (8507, 8541), False, 'import arcade\n'), ((8659, 8706), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (8672, 8706), False, 'import arcade\n'), ((8824, 8871), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (8837, 8871), False, 'import arcade\n'), ((8990, 9037), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (9003, 9037), False, 'import arcade\n'), ((9156, 9203), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (9169, 9203), False, 'import arcade\n'), ((9322, 9369), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (9335, 9369), False, 'import arcade\n'), ((9488, 9535), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (9501, 9535), False, 'import arcade\n'), ((9653, 9700), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (9666, 9700), False, 'import arcade\n'), ((9819, 9866), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (9832, 9866), False, 'import arcade\n'), ((9985, 10032), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (9998, 10032), False, 'import arcade\n'), ((10152, 10199), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (10165, 10199), False, 'import arcade\n'), ((10317, 10364), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (10330, 10364), False, 'import arcade\n'), ((10482, 10529), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (10495, 10529), False, 'import arcade\n'), ((10654, 10682), 'arcade.load_texture', 'arcade.load_texture', (['"""g.png"""'], {}), "('g.png')\n", (10673, 10682), False, 'import arcade\n'), ((10702, 10734), 'arcade.Sprite', 'arcade.Sprite', (['"""small.png"""', '(0.05)'], {}), "('small.png', 0.05)\n", (10715, 10734), False, 'import arcade\n'), ((18542, 18554), 'arcade.run', 'arcade.run', ([], {}), '()\n', (18552, 18554), False, 'import arcade\n'), ((2981, 3018), 'arcade.Sprite', 'arcade.Sprite', (['"""coin.png"""', 'COIN_SCALE'], {}), "('coin.png', COIN_SCALE)\n", (2994, 3018), False, 'import arcade\n'), ((11440, 11459), 'os.chdir', 'os.chdir', (['file_path'], {}), '(file_path)\n', (11448, 11459), False, 'import os\n'), ((11983, 12013), 'arcade.AnimatedWalkingSprite', 'arcade.AnimatedWalkingSprite', ([], {}), '()\n', (12011, 12013), False, 'import arcade\n'), ((12064, 12083), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (12081, 12083), False, 'import arcade\n'), ((12117, 12136), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (12134, 12136), False, 'import arcade\n'), ((12168, 12187), 'arcade.SpriteList', 'arcade.SpriteList', ([], {}), '()\n', (12185, 12187), False, 'import arcade\n'), ((14095, 14187), 'arcade.PhysicsEngineSimple', 'arcade.PhysicsEngineSimple', (['self.player_sprite', 'self.rooms[self.current_room].wall_list'], {}), '(self.player_sprite, self.rooms[self.current_room\n    ].wall_list)\n', (14121, 14187), False, 'import arcade\n'), ((14214, 14306), 'arcade.PhysicsEngineSimple', 'arcade.PhysicsEngineSimple', (['self.player_sprite', 'self.rooms[self.current_room].door_list'], {}), '(self.player_sprite, self.rooms[self.current_room\n    ].door_list)\n', (14240, 14306), False, 'import arcade\n'), ((14469, 14490), 'arcade.start_render', 'arcade.start_render', ([], {}), '()\n', (14488, 14490), False, 'import arcade\n'), ((14541, 14684), 'arcade.draw_texture_rectangle', 'arcade.draw_texture_rectangle', (['(SCREEN_WIDTH // 2)', '(SCREEN_HEIGHT // 2)', 'SCREEN_WIDTH', 'SCREEN_HEIGHT', 'self.rooms[self.current_room].background'], {}), '(SCREEN_WIDTH // 2, SCREEN_HEIGHT // 2,\n    SCREEN_WIDTH, SCREEN_HEIGHT, self.rooms[self.current_room].background)\n', (14570, 14684), False, 'import arcade\n'), ((15236, 15292), 'arcade.draw_text', 'arcade.draw_text', (['output', '(10)', '(20)', 'arcade.color.WHITE', '(14)'], {}), '(output, 10, 20, arcade.color.WHITE, 14)\n', (15252, 15292), False, 'import arcade\n'), ((17226, 17328), 'arcade.check_for_collision_with_list', 'arcade.check_for_collision_with_list', (['self.player_sprite', 'self.rooms[self.current_room].coin_list'], {}), '(self.player_sprite, self.rooms[self.\n    current_room].coin_list)\n', (17262, 17328), False, 'import arcade\n'), ((17344, 17451), 'arcade.check_for_collision_with_list', 'arcade.check_for_collision_with_list', (['self.player_sprite', 'self.rooms[self.current_room].bigpotion_list'], {}), '(self.player_sprite, self.rooms[self.\n    current_room].bigpotion_list)\n', (17380, 17451), False, 'import arcade\n'), ((17467, 17576), 'arcade.check_for_collision_with_list', 'arcade.check_for_collision_with_list', (['self.player_sprite', 'self.rooms[self.current_room].smallpotion_list'], {}), '(self.player_sprite, self.rooms[self.\n    current_room].smallpotion_list)\n', (17503, 17576), False, 'import arcade\n'), ((1459, 1507), 'arcade.Sprite', 'arcade.Sprite', (['"""gravel_dirt.png"""', 'SPRITE_SCALING'], {}), "('gravel_dirt.png', SPRITE_SCALING)\n", (1472, 1507), False, 'import arcade\n'), ((4014, 4061), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (4027, 4061), False, 'import arcade\n'), ((11404, 11429), 'os.path.abspath', 'os.path.abspath', (['__file__'], {}), '(__file__)\n', (11419, 11429), False, 'import os\n'), ((12416, 12478), 'arcade.load_texture', 'arcade.load_texture', (['"""zombie_stand.png"""'], {'scale': 'character_scale'}), "('zombie_stand.png', scale=character_scale)\n", (12435, 12478), False, 'import arcade\n'), ((12657, 12734), 'arcade.load_texture', 'arcade.load_texture', (['"""zombie_stand.png"""'], {'scale': 'character_scale', 'mirrored': '(True)'}), "('zombie_stand.png', scale=character_scale, mirrored=True)\n", (12676, 12734), False, 'import arcade\n'), ((12916, 12978), 'arcade.load_texture', 'arcade.load_texture', (['"""zombie_walk1.png"""'], {'scale': 'character_scale'}), "('zombie_walk1.png', scale=character_scale)\n", (12935, 12978), False, 'import arcade\n'), ((13103, 13165), 'arcade.load_texture', 'arcade.load_texture', (['"""zombie_walk2.png"""'], {'scale': 'character_scale'}), "('zombie_walk2.png', scale=character_scale)\n", (13122, 13165), False, 'import arcade\n'), ((13345, 13422), 'arcade.load_texture', 'arcade.load_texture', (['"""zombie_walk1.png"""'], {'scale': 'character_scale', 'mirrored': '(True)'}), "('zombie_walk1.png', scale=character_scale, mirrored=True)\n", (13364, 13422), False, 'import arcade\n'), ((13545, 13622), 'arcade.load_texture', 'arcade.load_texture', (['"""zombie_walk2.png"""'], {'scale': 'character_scale', 'mirrored': '(True)'}), "('zombie_walk2.png', scale=character_scale, mirrored=True)\n", (13564, 13622), False, 'import arcade\n'), ((16661, 16753), 'arcade.PhysicsEngineSimple', 'arcade.PhysicsEngineSimple', (['self.player_sprite', 'self.rooms[self.current_room].wall_list'], {}), '(self.player_sprite, self.rooms[self.current_room\n    ].wall_list)\n', (16687, 16753), False, 'import arcade\n'), ((17690, 17724), 'arcade.load_sound', 'arcade.load_sound', (['"""coinsound.wav"""'], {}), "('coinsound.wav')\n", (17707, 17724), False, 'import arcade\n'), ((17738, 17765), 'arcade.play_sound', 'arcade.play_sound', (['my_sound'], {}), '(my_sound)\n', (17755, 17765), False, 'import arcade\n'), ((18130, 18161), 'arcade.load_sound', 'arcade.load_sound', (['"""shrink.wav"""'], {}), "('shrink.wav')\n", (18147, 18161), False, 'import arcade\n'), ((18175, 18202), 'arcade.play_sound', 'arcade.play_sound', (['tu_sound'], {}), '(tu_sound)\n', (18192, 18202), False, 'import arcade\n'), ((18344, 18373), 'arcade.load_sound', 'arcade.load_sound', (['"""grow.wav"""'], {}), "('grow.wav')\n", (18361, 18373), False, 'import arcade\n'), ((18387, 18414), 'arcade.play_sound', 'arcade.play_sound', (['yo_sound'], {}), '(yo_sound)\n', (18404, 18414), False, 'import arcade\n'), ((1991, 2039), 'arcade.Sprite', 'arcade.Sprite', (['"""gravel_dirt.png"""', 'SPRITE_SCALING'], {}), "('gravel_dirt.png', SPRITE_SCALING)\n", (2004, 2039), False, 'import arcade\n'), ((2433, 2475), 'arcade.Sprite', 'arcade.Sprite', (['"""fence.png"""', 'SPRITE_SCALING'], {}), "('fence.png', SPRITE_SCALING)\n", (2446, 2475), False, 'import arcade\n'), ((4527, 4574), 'arcade.Sprite', 'arcade.Sprite', (['"""stone_snow.png"""', 'SPRITE_SCALING'], {}), "('stone_snow.png', SPRITE_SCALING)\n", (4540, 4574), False, 'import arcade\n'), ((17000, 17092), 'arcade.PhysicsEngineSimple', 'arcade.PhysicsEngineSimple', (['self.player_sprite', 'self.rooms[self.current_room].wall_list'], {}), '(self.player_sprite, self.rooms[self.current_room\n    ].wall_list)\n', (17026, 17092), False, 'import arcade\n'), ((17914, 17943), 'arcade.load_sound', 'arcade.load_sound', (['"""door.wav"""'], {}), "('door.wav')\n", (17931, 17943), False, 'import arcade\n'), ((17961, 17990), 'arcade.play_sound', 'arcade.play_sound', (['your_sound'], {}), '(your_sound)\n', (17978, 17990), False, 'import arcade\n')]