Scrolling Background


I found an example of scrolling background on openprocessing website. I tried to understand the code and write my own code for my game.


Adding Snow

Rob suggested that if there were “falling snow” in the background, it would be nice. So, I tried to write the code for it and Finally, I had got it!

Basically, I created two different classes Moving dots and Moving dots2 and used for loop for repeating the dots.