This is code for a game I'm working on, and I thought it'd be nice to share it for people to use. Please credit if you use it! :) Features: - animation for the character, 22 costumes in total! - walk in four directions - both arrow keys and WASD can be used to move - press Q to sit and sleep - if you press space, the character will get sick (this is a feature for the game) If you have any questions, just ask!
Everything by me. The player costumes and the background were made on Pixilart. (great tool if you want to make pixel art for your projects!)