def animation():
    global frame
    if (game == 1):
        if (frame == 0):
            player.image = 'p3_walk01'
        if (frame == 1):
            player.image = 'p3_walk02'
        if (frame == 2):
            player.image = 'p3_walk03'
        if (frame == 3):
            player.image = 'p3_walk04'
        if (frame == 4):
            player.image = 'p3_walk05'
        if (frame == 5):
            player.image = 'p3_walk06'
        if (frame == 6):
            player.image = 'p3_walk07'
        if (frame == 7):
            player.image = 'p3_walk08'
        if (frame == 8):
            player.image = 'p3_walk09'
        if (frame == 9):
            player.image = 'p3_walk10'
        if (frame == 10):
            player.image = 'p3_walk11'
        frame += 1
        frame %= 11
def animation():
    global frame
    if (game == 1):
        if (frame == 0):
            player.image = 'p3_walk01'
        if (frame == 1):
            player.image = 'p3_walk02'
        if (frame == 2):
            player.image = 'p3_walk03'
        if (frame == 3):
            player.image = 'p3_walk04'
        if (frame == 4):
            player.image = 'p3_walk05'
        if (frame == 5):
            player.image = 'p3_walk06'
        if (frame == 6):
            player.image = 'p3_walk07'
        if (frame == 7):
            player.image = 'p3_walk08'
        if (frame == 8):
            player.image = 'p3_walk09'
        if (frame == 9):
            player.image = 'p3_walk10'
        if (frame == 10):
            player.image = 'p3_walk11'
        frame += 1
        frame %= 11