Welcome to Part 4 of my blog series about game development: Endless Scrolling

Today I’m showing how to implement an endless scrolling which is typical for Jump & Run games.

First of all you need a background with 3 sections like the one shown below:

Scrolling

Section 1 and 3 must be identical and have to fit on the whole screen.

Scrolling

Scrolling

If you reach the end of the world (section 1) you have to switch back to section 3.

Scrolling

After that you can start scrolling again.

Scrolling

I’ve created a small video to demonstrate this: Video

That’s all for today. In my next post I’ll show how to implement this in Objective C and I’ll add some nice parallax effects. Cheers, Stefan