This post is a portion of Part 11 in my on going series about 2D Game Development using the Allegro 5 library. These posts are in course order. You can see all of the posts in this course by clicking the “2D Game Development” button at the top of this site.
- Part 11.0 – Backgrounds
- Part 11.1 – Parallax Backgrounds
- Part 11.2 – Tile Backgrounds
- Part 11.3 – Tile Backgrounds with Mappy
Let’s tackle our first background project. In this video we look at creating scrolling, parallax backgrounds in Allegro 5. Using the attached code and images, you can add some cool effects to your games.
Full source can be found here.

What i have to do if i want to translate parallax background on x-axis?