Page 155 - Super Scratch Programming Adventure -1st Edition
P. 155
When you catch the mouse, you win the game!
This game uses all the different kinds of sensors and con-
trols on the PicoBoard:
Slider Controls Scratchy’s movements left and right
Light sensor Changes the background according to how
much light there is in the environment
Button Makes Scratchy jump
Sound sensor Senses the volume of the environment and
adjusts the game’s volume in response; Scratchy will meow
whenever the sound sensor reads over 25% (in response to a
loud noise)
Input A Makes the mouse squeak when the two alligator
clips touch each other and transmit a current
Play around with this project. Take a look at the program-
ming for Scratchy and the mouse to learn how the sensors can be
programmed. Can you think of other fun games you could make
with the PicoBoard?
154

