This is some really old code I wrote in 2005-2006 when learning a lot of stuff related to GameDev.