Parallax Scrolling

From C64-Wiki
(Redirected from Parallax scrolling)
Jump to navigationJump to search

In contrast to conventional scrolling, where background graphics are moved over the screen, parallax scrolling uses different graphic layers, each of which is moved at a different speed. The concept behind that is to create an optical illusion of an existing parallax, which suggests a 'deeper' world for the viewer/player.

According to the hardware specifications parallax scrolling was not meant to be created on the C64, but after some time a few programmers were well versed in developing techniques for achieving the desired effect after all. Apart from the demoscene the useful application of parallax scrolling is mainly limited to action games.

From a technical standpoint several different kinds of parallax scrolling are to be distinguished. Sometimes they are even combined, e.g. by the use of sprites (Shadow of the Beast).

parallax scrolling in "Turrican II" (Level 3)


Trick scrolling of the same patterns within few chars[edit | edit source]

The easiest way of parallax scrolling can be found in early games like the game Parallax (1986), where the name already refers to the scrolling-technique. Here the existing bits are being rolled (horizontally) or copied (all directions) within one or several chars so that the parallax-effect is created. The graphics of these background layers often appear to be quite generic.

Scrolling in "X-Out"
Scrolling in "Snare"
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1996
19??
2008
2020

Many space-shooters make use of large areas of stars moving at different speeds in the background, which can also create some kind of parallax-effect.

Scrolling in "Delta"

An exceptional form of large area background animation can be found in several levels of the games Creatures 2 and Quasimodo's Christmas Caper. The gently falling snowflakes are being copied into several chars of a charset. It creates the illusion as if all these snowflakes were individual graphic elements moving individually on the screen.

Layer scrolling by use of raster interrupts (only horizontal)[edit | edit source]

By the use of rasterlines it is possible to display several layers of different speeds. But these layers cannot overlap, which can be recognized in the early game Moon Patrol. The green mountains do not rise up into the area of the grey ones.

Scrolling in "Moon Patrol"
Scrolling in "Kane" (Level 2)
Scrolling in "Cauldron"
Scrolling in "Helikopter Jagd"
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1997
2001
2020
2021
2022

Parallax scrolling using Sprites[edit | edit source]

Using sprites as background graphics (e.g. trees, clouds, mountains) is another way of creating an additional layer.

Scrolling in "Choplifter"
Scrolling in "Forbidden Forest"
1982
1983
1984
1985
1986
1987
  • Battle Valley
  • Delta (main graphics layer consists of sprites; parallax-layer with stars are used in the background)
1990
1991
1997
2001
2021

Real parallax scrolling[edit | edit source]

Even though the game Karateka, which was already published in 1984, did not really have real parallax scrolling, it proves to be an early attempt of scrolling a foreground layer in front of a stable background layer (here: a mountain picture). As this concept was realized by copying bitmap-graphics, it heavily slowed down the gameplay. This may have been the reason why this concept has not been used in other games.

It was not until the year 1988 that the game Hawkeye pushed the development of fluent parallax scrolling forward. The concept of the program and its realization was innovative and brillant at the same time. By means of four charsets, which were being switched permanently, it was possible to create the illusion of a stable background layer. While part of the charset, used for the scrolling foreground area of the player, had to be the same in all four charsets, the slow-moving background layer consisted of chars of the four switching charsets, which had to be moved and saved by one multicolor-pixel each. The change of the charsets had to be synchronized against the scrolling of the foreground layer so that the viewer/player would have the illusion as if the background layer would not be moving (even though the charsets are permanently moving in the background of the program).

This impressive concept of programming for Hawkeye showed the way forward to later games, in which real parallax scrolling was used, i.e. two complex graphic layers were scrolling at different speeds.

The only tool for creating levels with parallax scrolling is the GEPA Editor (1994).

Scrolling in "Hawkeye"
1984
1988
1990
1991
1992
1993
199?

Explanation of parallax scrolling (beginning at minute 1:51)

Mixed forms[edit | edit source]

Special forms[edit | edit source]


Links[edit | edit source]

WP-W11.png Wikipedia: Parallax
WP-W11.png Wikipedia: Parallax_scrolling