A space invaders game written in D to teach you how to do that sort of thing.
Just download the source code and the dependencies into the same folder, then you compile it with the command: dmd source -m64 -i -J. -O -g
Notice it was designed for Windows, it may not work on Linux.