Bake Off
The goal is to have the chef collect all ingredients on the screen and bake them to make a cake. The user controls the character with the arrow keys and, when they are near, can collect an ingredient with the c key. The user drops an ingredient with the d key and must drop one of each in the oven to win.
The code consists of a Collector class and a Targets class. The Collector refers to the chef character, and Targets consists of all the ingredients. The Collector class has move(), pickup(), carry(), drop(), and a function that is used to check proximity to ingredients. It interacts with the Targets class, and they work in tandem in the main sketch file.