Now that we have the player sprite loaded and displayed, and the player itself is a class, it's time to make it move. There are two ways to handle input: handling the events or getting the keyboard state. In this article, only events will be discussed.
Before getting started, be sure to download the part 2 example files. This is a different file than the previous articles, so you'll need to download the file linked to above. Note that all pixel art (such as the player, aliens and bullets) were created by Pixel_Outlaw.