
Yep!!!! That's circuit (looped) races finally coming to FDB! Turns out finding loops in a graph is an already solved problem, only I had to google "cycles in graph" not "loops in graph". I tried finding all cycles in a graph only to have a brainwave today, that I don't need ALL of them just the ones through the intersection my marker happened to spawn on (current map is funny because pretty much every intersection HAS a loop through it, but I will later need some more code that checks if we happened to be a dead-end or something)
BTW that would've been much easier if we had a Graph in Godot itself, see https://github.com/godotengine/godot-proposals/issues/3848, instead of me writing clunky stuff while AStar2D/3D basically have a graph data structure already... :/
No racers/actual racing yet as the AI/race code will need some more tweaks before they're let loose 😛
Note: shaders are currently a bit broke, waiting for beta1 because I don't want to keep refixing them for every new alpha. That doesn't preclude AI/code improvements, though, see above 😉