- Move your mouse over a line, see if collide is "Yes". - Space to regenerate all lines -Made a new version, this one doesn't work with perfectly vertical lines due to it only checking with the Y pos, plus a few other glitches, but I'll keep this one up.
- Generates a line with pen, uses Y=Mx+B to find intersect, if the intersect is valid and also matches the position of the mouse/player Y (with some leniency) it will set the collide variable to "Yes". - Not a lot of code but took a surprising amount of time to figure out. - Red dot follows the theoretical Y (compared to the mouse/player x) of one of the lines, was used for testing but I decided to leave it in