I'm curious and i'm a noob lol, did you animate this is code? Like "transforming" the sprite? For my game this was my approach since i'm terrible at art.
Nope, it's done in Aseprite! I have four moving animations. Left-right, diagonal-right, diagonal-left, and up-down. I check for the direction of the player on the x and y axis and play the proper animation