Programmers help me!
Here you go. My code does this. Enjoy.
If this is homework, good luck with school. If you're making a game, this is just the start of your pain.
Leave this field blank: