govizlora / optical-breacher

Online Cyberpunk 2077 breach protocol minigame puzzle solver using camera
https://govizlora.github.io/optical-breacher/
565 stars 31 forks source link

Better route indication #4

Open rozmy opened 3 years ago

rozmy commented 3 years ago

That's a bit overkill from implementation perspective so feel free to close it.

It would be nice to draw the route between each step as on this mockup below. This improves the readability but introduces a load of edgecases to cover like:

cxcorp commented 3 years ago

The implementation isn't that overkill - the image on the right is exactly how I render the results in my own project. Example here. Most of the fluff is just figuring out a proper font width for the canvas. Handling intersections is definitely an annoying edge-case though for the solver's optimizer, but it's doable!