Chapter 20 ■ Coding gameplay: Set Up gameplay methodS and animated Camera View
Figure 20-4. The setupQ1S1gameplay method is error-free and can be finished and copied and pasted to
create setupQ1S2gameplay()
Let’s use the Run ➤ Project work process and see whether when we click square 1 it puts the correct
image in the center of the quadrant. As you’ll see in Figure 20-5, the Java code works, and we can create the
other 19 methods.