How to create endless 2d curvy terrain?
Hi,
I have watched this video on how to create 2d terrain but didnt understand most of it:
https://www.youtube.com/watch?v=nPX8dw283X4
I was wondering if anyone could help explain it and possible give some code to help me create a similar effect?
Any help is greatly appreciated, thanks.
Answer by DroidifyDevs · Apr 02, 2016 at 02:04 AM
I haven't done this in theory, but here's an idea:
As your player moves, create clones of the 2D terrain in front of his path so he can walk infinitely. This will cause a drag on the memory so destroy the terrain clones behind him. While hard to explain in text, it would be pretty easy to code and would work flawlessly.
The problem I have is I need the terrain to be randomly generated. Any ideas?
Your answer
Follow this Question
Related Questions
how to make terrain in 2D game? 0 Answers
How create a material silhouette? 0 Answers
Rendering a contour map from Marching Squares 1 Answer
How to create 2D destructible terrain? 0 Answers