MS-DOS came with QBasic. You could create your own games as soon as you reached the prompt.