New answers tagged


The idea behind infinitely scrolling backgrounds is pretty simple. You simply draw the background enough many times to fill the screen, and once a piece of the background moves off screen, you loop the rendering and start back from the beginning. So, the basic functionality would go as follows: (pseudo code, should be easily adaptable to PyGame) piece = ...

Top 50 recent answers are included