Some bad code I wrote as a noobie. Use at own risk. Requires XNA framework.