Procedural Race Tracks
Procedural Race Tracks
This was a project that I created for an advanced game development class I took while in college. This is a game where you drive a car around race tracks that are procedurally generated. I developed the code and algorithms that generate the racetracks in Unity, as well as the code for other game elements such as the car and checkpoint system. There are five different types of tracks that can be generated in this demo, all of which have different values assigned to the generator that affect the types of tracks generated
Checkout the game on Itch: Click to go to Itch.io Page
Here are some examples of generated tracks:
This is the tool that generates different tracks. The button at the bottom generates a track in editor, but the script is also capable of generating tracks during runtime
Here is an example of code that uses Bezier Curves to smooth out the turns in the track