In this chapter, you will learn how to prepare a Processing sketch that reacts to events such as clicking your mouse on the screen.
I use the term player for the person running the program. No matter what term is used, you, the program designer and builder, should have the future user in mind when you are doing the work. You are the user, player, or client when you are testing the program.
The examples for this chapter are a sketch in which polygons are drawn where the player clicks the mouse (see Figure 2-1) and a coin-toss type of application, which in my example, alternates between different ...