“Code never lies, comments sometimes do.”
In this chapter, we’ll work on what we want our gun to do. When the user presses anywhere on the screen, apart from the Reload button, it should be treated as a shot. How a shot happens and the consequences of a shot are dealt with in Chapter 7. For now, let’s look at reacting to a user click.
There will be a few awesome techniques employed, including sprite sheets for animation and mathematics for fluid movement. As you build other games in the future, you may find yourself coming back and reusing these functions and techniques. ...