Adapted from Tiny 16: Basic
By Lanea Zimmerman
https://opengameart.org/content/tiny-16-basic
http://opengameart.org/content/oga-by-30-faq