Im trying to make a maze-like game and I need to simplify the code for when my player(picture box) collides with the walls of the maze(label). The code I have so far is
if pictureBox1.Bounds.IntersectsWith(label1.bounds) or _ pictureBox1.Bounds.IntersectsWith(label2.bounds) then
(pretend code is here)
end if
and basically repeat that for 68 different walls. would there be any way to simplify that to make it shorter?