All examples · Sprites and 2D

Parallax

What this example shows

Five forest layers, each an object of its own with its own speed. Each layer is one full-screen image drawn twice, side by side: when a copy slides fully off to the left it jumps two widths to the right, so the loop has no seam.

Slower reads as farther away: the depth trick every 16-bit platformer leaned on.

Starting