A better background

A great feature of many 2D games is a parallax scrolling background. This simply means that the background is created in layers that scroll by at different speeds. Think of it as if looking out the window of your car. The objects that are far away appear to hardly move, while the ones that are near move by quickly. In a 2D game, it gives the illusion of depth and adds a nice touch to the look of the game. For this background, we will be layering several materials on a single plane.

Get Unity Android Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.