Teach-Primary-Issue-19.7
Projects At Code Club, we offer hundreds of free, step-by-step project guides to teach coding languages like Scratch, Python, HTML and CSS, and more. Using step-by-step instructions, young people learn how to create games, animations, and much more. Get creative with AI: Chomp the cheese! Using Scratch Lab, you'll build an interactive game that you control with your face. It's a super fun way to explore how computers can process your movements and learn about machine learning in a hands-on way. Let's get started! Ready to try more projects with your learners? Register your club on the Code Club website to access hundreds of free, ready-to-use coding projects and learning paths. Code Club is part of the Raspberry Pi Foundation, UK registered charity 1129409. codeclub.org Open Scratch Lab: lab.scratch.mit.edu If you are asked for permission to use your webcam, click on ‘Allow on every visit’. You should now see a version of Scratch with special Face Sensing blocks. The view from your webcam will also be displayed on the Stage. Move the cheese Make your cheesy puffs move. Add a new sprite. You can choose an existing sprite, upload an image, or even paint your own sprite! We chose the Cheesy Puffs sprite. Add some code to make the sprite move to random positions around the screen: Test: Click on the green flag and check that your sprite moves randomly around the screen to different places. Chomp the cheese In the Cheesy puffs sprite's code, add a Face Sensing block that detects when it touches a mouth. Add some code blocks under the Face Sensing block to make the cheesy puffs disappear when they touch a mouth: Click on the green flag and have fun trying to catch the cheesy puffs with your mouth! 1. 2. 4. 5. 3. 1. 2. 3. 1. 2. 3. 4. 5. Delete the cat sprite. Click on ‘Face Sensing’ Click the ‘Try it out’ button 1 2 3
Made with FlippingBook
RkJQdWJsaXNoZXIy OTgwNDE2