New answers tagged side-scroller
As long as the player is alive, you can increase the offset of the texture. Basically the player stays still and the texture moves. Little cheating in this method as it takes around 20 lines of code and isn't fancy.
Top 50 recent answers are included