I'm currently trying to make a game where the player races others along an infinite, more-or-less straight, road.
By "more-or-less straight", I mean that the road goes straight ahead (the player can't turn their vehicle to face left or right), but there are bends in the road for them to pass through, as if they were switching from one lane to another on a highway.
There will also be different "areas" to race through (all on the same road), for example, deserts, jungles and over water.
And, finally, there will be gaps in the road for the player to jump over, as well as checkpoints every so often.
Starting with a seed, how can I generate the road ahead of the player as they race? I can't generate the entire road in advance (obviously), but each player needs to see the same thing at the same places along the track.
How can I do this?