© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. MeyerProgramming 101https://doi.org/10.1007/978-1-4842-8194-9_5

5. More Interactions

Jeanine Meyer1  
(1)
Mt Kisco, NY, USA
 

Abstract

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

Get Programming 101: Learn to Code with the Processing Language Using a Visual Approach 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.