Linux Format

Scratch sound and motion detection

Continuing our series of Scratch projects, we’ve finally escaped from the planet of the snack-stealing space bats and are recovering in our starship’s extensive leisure facilities. To be specific, we’re keeping fit in the astro-gym with Ball Blaster, a game where you punch balls to score points, but you only have 30 seconds! To control the game we use a webcam that will look for our hands and react when we hit a ball. To start the game we need to shout “GO” and then the countdown starts!

Plug in your USB webcam and it should just work. Scratch 3 should come pre-installed on your Raspberry Pi OS image, but just in case it’s missing it can be installed from the main menu, under Preferences> Recommended Software. Scratch 3 is found in the

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format5 min read
Tips For Managing Docker Containers
Everyone knows how containers revolutionised application building and deployment. Using a E disposable stack of containers that make up an app that aren’t using the docker-compose command to manage the stack are missing a trick. It allows the shippin
Linux Format1 min read
Installation Complications
The Linux Mint system package for Timewarrior was out of date, so we installed the latest version from Snap. The Hamster package in the distribution repository was the latest stable release (which is quite old), but we could also have installed via F
Linux Format3 min read
Drauger OS 7.6
We love the idea of a gaming-specific version of Linux, but Drauger fails to deliver. Given the setup/kernel issues, you’re far better off installing Ubuntu, then adding gamingspecific packages yourself. CPU: 1.8GHz (2GHz suggested) Mem: 1GB (6GB sug

Related