t (x, y) is near a wall
    global nbnw
    nbnw = nbnw + 1
    for i in [-0.1, 0.1]:
        xx=floor(x + i)
        for j in [-0.1, 0.1]:
            yy=floor(y + j)
            if arena[xx][yy]:
                return True
    return False

xOff = 0
yOff = 0
def wobbleGun():
    global xOff, yOff
    mag = playerVelY
    xOff = 10 + cos(total / 6.23) * mag * 90
    yOff = 10 + cos(total / 5) * mag * 90
    overlay.style.backgroundPosition = f"{int(xOff)}px {int(yOff)}px"

jumpCycle = 0

def shoot():
    