It actually started on the C64, as a by-product of game cracking. People would first add their "handles" into cracked games, then some small intros before the game. These intros soon became competetive, and were made stand-alone, known as demos. There was some overlap of game and demo-scene, but not much until around 1992 or so, on the Amiga.