Here are some old games I have written in the past. There are many different types. The oldest were written using Microsoft's QuickBasic, newer ones using the Allegro Game Programming library, and some using the SDL (Simple Directmedia library).
beetle.zip - Beetle game, a clone of the mini game from Super Mario RPG (DOS)