Computers

How To Program Webcam-Powered Scratch Games

How To Program Webcam-Powered Scratch Games

Keeping fit can be fun. What if, instead of running around a park we made a game where you have to hit as many balls as you can to score points? The catch is that you only have 30 seconds to get the highest score! Sounds easy, hand me the joypad! No! To control the game we have to use our body and a webcam that will look for our hands, feet, head and react when we hit a ball. In a twist, we can only start the game shouting “GO” and then the countdown starts! 

For This Project You Will Need

  • Raspberry Pi 4 or 400 (or a Windows / Apple computer)
  • The latest Raspberry Pi OS
  • A USB webcam

Starting the Game 

1. Power up your Raspberry Pi 4 / 400 and connect your USB webcam. We are using a USB webcam instead of the official Raspberry Pi camera as we need the built in microphone. 


Source link

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button