In this tutorial, I suggest you write a first piece of game code. As a result, you will create a character, teach him to walk left/right when pressing the "A"/"D" keys. In addition, it will rotate, as well as change the sprite animation from the "walk" phase to the "idle" phase and back.