I had this idea 4 years ago and I wrote it in around 2 hours or so. I hope that it's useful to someone who is learning game dev!
Feel free to use for literally any purpose at all. (Except the graphics are not mine and I don't remember where they came from, so don't use those. Sorry!)