Python Forum
[PyGame] Creating a Scrolling (infinite) Background
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Creating a Scrolling (infinite) Background
#1
I've been dabbling in Pygame for over a month now and I've discovered many things. I've created two games so far + 2 more in development. I intend to share those some time in the future too.

One of the many concepts I came across was the Infinity Scrolling Background feature. I eventually came up with a really solid and simple way of doing it involving only about 10 - 15 Lines of code.

What's more, my methods also works for Horizontal as well as Vertical background scrolling (with a slight tweak that's discussed in the tutorial). For anyone learning pygame, I highly recommend you check it out.

-> Scrolling Back-Ground Tutorial.
-> The Game upon which it is based.
Reply
#2
Interesting!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020