                        thisSide = 1
                        thisRow = mapY
                        face.append(2 + stepY)
                    lastHeight = distY
                    break
                distY = distY + deltaY
    data.append(i)
    data.append(lastHeight)
    return data

c1 = 3.2
c2 = 10
c3 = 1

def drawCanvas():
    c11, c12 = 0, 0
    canvas.clearRect(0, 0, 400, 300)

    theta = playerDir - pi / 6

    wall=wallDistance(theta)

    map.beginPath()
    map.clearRect(0, 0, 80, 80)
    ma