I'm trying to do a 2D Game that tries to emulate the Crossy Road game logic with the Java's GUI programming environment as a college project.
I'm having issues designing the way the 'roads' are procedurally generated.
An example of game-play of Crossy Road can be found here, but to give a glimpse, here is a screenshot (taken from the Crossy Road Web site):
The game is based on an infinite, randomly generated level. I need to generate different kinds of patterns, for example:
- one street then 2-way street
- some small river with logs around them
- etc.
I don't know how I could generate at first the types of roads/roads groups that one should cross, then how I could generate the tiles for that road, and then eventually how to link these roads with the different mobile items on them (floating logs, vehicles, trains, etc.).
How could I do that?