This chapter continues with classes and with more interactions by providing three new sketches. The first example is a game in which the player uses a slingshot to hit a chicken. You’ll then create a snake sketch, which is my version of a snake game. The final sketch tests the interpretation of what a player sees. It was inspired by a psychology student who wanted to record reactions from test participants.
More on the Sketches
The slingshot sketch makes use of the same mouse event functions that you learned about in the previous chapter to perform a dragging operation, moving the circle representing ...