19Make a Game in Scratch: Hungry Monkey

In this project you’ll use the block-based programming language Scratch to create a game that can be controlled with two pushbuttons and your Pi.

image

PARTS REQUIRED

Raspberry Pi

Two pushbuttons

Breadboard

Jumper wires

In this project, you’ll create your own game called Hungry Monkey. The object of the game is for the monkey to catch as many ripe bananas as possible in 30 seconds, while avoiding the rotten ones. You’ll be able to move the monkey left and right with two pushbuttons that you’ll wire to your Raspberry Pi.

INTRODUCING SCRATCH 2

NOTE

To find out more about Scratch, visit the official Scratch website ...

Get 20 Easy Raspberry Pi Projects 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.