Welcome to Part 4 of my blog series about game development.
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:
Section 1 and 3 must be identical and have to fit on the whole screen.
If you reach the end of the world (section 1) you have to switch back to section 3.
After that you can start scrolling again.
I've created a small video to demonstrate this:
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
No comments:
Post a Comment