Screensavers have mostly disappeared, but almost everyone remembers them: the moment you stepped away from the PC, the monitor filled with abstract drawings, bouncing text or something close to a tiny game. One of the simplest and most hypnotic was Starfield, which shipped with Windows 95 — a calm flight through an endless field of stars.
That screensaver is what this project rebuilds.
Goal
Draw a field of stars that move towards the camera, so it feels like flying through space.
What it takes
The project is deliberately small. It needs:
- an empty full-screen canvas,
- a basic game loop that updates and redraws every frame,
- a little perspective math: each star has a position and a depth, and dividing by the depth makes it drift outwards and grow as it comes closer.
That is also why it comes first: these three pieces are the scaffold every later game in my TypeScript toolbox builds on. How the code is organized is described in Das Ein-Feature Framework.
Comments