def update():
    global game
    global jump
    global jump_blocked
    global jump_unblocked
    if (keyboard.SPACE and (jump_unblocked == 0)):
        if ((game == 0) or (game == 2)):
            jump_blocked = 1
            clock.schedule_unique(unblock_jump, 0.3)
            reset()
        game = 1
        if (jump_blocked == 0):
            jump = (- 18)
            jump_blocked = 1
            sounds.jingles_jump.play()
    animation()
    jump_fall()
    move_cloud()
    move_obstacle()
    check_collision()
def update():
    global game
    global jump
    global jump_blocked
    global jump_unblocked
    if (keyboard.SPACE and (jump_unblocked == 0)):
        if ((game == 0) or (game == 2)):
            jump_blocked = 1
            clock.schedule_unique(unblock_jump, 0.3)
            reset()
        game = 1
        if (jump_blocked == 0):
            jump = (- 18)
            jump_blocked = 1
            sounds.jingles_jump.play()
    animation()
    jump_fall()
    move_cloud()
    move_obstacle()
    check_collision()