← anamaya.fyi 2021 · college

A road that never ends and never repeats.

A Kivy arcade game I wrote in 2021, playable here. The track generates itself forever from a rolling window of sixteen tiles, and a perspective transform bends the flat grid into a horizon. Steer with the arrow keys, A and D, or by holding either side of the screen — and stay on the track.

Galaxy

Stay on the track.

Curve 66
0
tiles travelled
0
tiles held in memory
0
turns generated
0
your best run

The rolling window

The generator never holds more than sixteen tiles. Each frame it drops everything behind the camera and tops the list back up: pick straight, left or right at random, and on a turn emit an L of two extra tiles so the path stays connected. Two clamps stop it walking off the edge — at the left boundary the next move is forced right, and at the right boundary forced left. That is the entire level design.

The quartic horizon

The projection is one line: take how far up the screen a point is, raise it to the fourth power, and use that to pull the point toward a vanishing point. A linear factor gives a flat, wrong-looking ramp. The fourth power crushes distance near the horizon the way real perspective does, which is why the track appears to rush at you when it is really sliding at a constant rate. Turn Perspective off to see the flat grid it is actually generating.