© Jeanine Meyer  2018
Jeanine MeyerProgramming 101https://doi.org/10.1007/978-1-4842-3697-0_5

5. More Interactions

Jeanine Meyer1 
(1)
Mt Kisco, New York, USA
 

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 ...

Get Programming 101: The How and Why of Programming Revealed Using the Processing Programming Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.