Hello
i am working on mobile game and it’s endless running game and it’s about trying avoid traps as far as you can … and i have problem about how i can make the terrain generate to become endless ?
Photo from the terrain :
…
Hello
i am working on mobile game and it’s endless running game and it’s about trying avoid traps as far as you can … and i have problem about how i can make the terrain generate to become endless ?
Photo from the terrain :
…
The following would be my approach to making a game like this:
Setting the camera culling distance to however far I want the player to see ahead.
At each level start, I would instantiate a pre-generated level stub (possibly a prefab) that consists of parts.
Grow the stub by adding pieces to the end of the level. My initial approach would be to instantiate a piece at the end when the player steps on a new piece.
The hardest part is probably getting the piece generation logic implemented so that the levels ‘make sense’.
You’ll have to Instantiate() the ground/platforms/terrain/land as the player goes forward.
Depending on the platforms’ size and gameplay nature you can choose to:
These are the two ways I can think of atm.
You have probably worked this out by now, but in case some one else comes to look at this.