A road that bends line by line
How Nitro Creek draws a bending road from straight tiles, with a different sideways shift on every line of the screen, and how to make the track twistier.
Straight tiles, bent picture
Nitro Creek is a three lap street race. Its road tiles are perfectly straight. The bends come from a GBA trick: the background can be shifted sideways by a different amount on each of the screen's 160 lines. Shift each line to where the road's middle is at that distance, and the straight road looks curved.
This costs almost nothing. The game works out 41 points ahead of the car each frame, blends between them for the lines in between, and hands the console a list of 160 shifts.
GBA Intermediate is a course for paid accounts. The rest of this lesson, and its guided session, are in the app.
Next lessonHazards and boost pads