canvas.save()
    canvas.strokeStyle = "#ff0"
    canvas.beginPath()

    canvas.moveTo(190 + xOff, 140 + yOff)
    canvas.lineTo(250 + xOff, 200 + yOff)
    canvas.closePath()
    canvas.stroke()
    canvas.restore()
    timer.set_timeout(drawCanvas, 100)

def update():
    global total, jumpCycle, playerVelY, playerDir
    total = total + 1
    change = False

    if jumpCycle:
        jumpCycle = jumpCycle - 1
        change = True
        playerPosZ = 1 + jumpCycle * (20 - jumpCycle) / 110
    elif key[