![]() ![]() ![]() This simple demonstration has a limited vocabulary, but is designed to be easy for readers of Scratch Programming in Easy Steps to customise. There's no scoring in this - it's just a simple demo using webcams in Scratch. Then use your hands to guide the beetle to the donuts. Make sure your webcam is set up, click the green flag to start, click Allow to let Flash use your webcam. This simple example shows how you can use your webcam to guide sprites around the screen. If you can do it, the host will do a break dance for you. In this simple maths quiz, you're challenged to answer 10 times tables questions in under 30 seconds. ![]() If you're looking for a more challenging set of words, play my Javascript Hangman. This game includes a small set of words (you can customise it with your own). Nevertheless, I've used Hangman in the book to demonstrate list handling, structured programming, and how you can get around some of Scratch's limitations to achieve effects like text on the Stage. Secondly, the text handling capabilities are somewhat limited. Firstly, there's no way to write on the screen (except by using speech bubbles), so I've used a sprite with costumes for each letter. In Scratch, it's actually a pretty hard project. In most programming languages, implementing Hangman is a pretty simple demonstration of string handling. When you've collected an item, take it back to the bottom of the screen, and a new item will appear for you to collect. Use the cursor keys to get the cat over the road safely to collect its shopping. This is another shortie from the book, but I really like the speed and fluidity of the gameplay. There's lots you can do with this effect. My first demo for this effect had fireballs raining down on a city skyline and blowing holes in it. I was quite pleased with the illusion of breaking down the wall. It only takes up two pages in the final book, and is a great illustration of how you can make simple game mechanics using very little code in Scratch. The aim is to smash through the wall at the top. Use the cursor keys to move the footballer and keep the ball in play. This is one of the quick demos in Scratch Programming in Easy Steps. This demo uses the cloning feature that was newly introduced in Scratch 2.0. I decided the game was a bit too easy in its raw form, so I made it sap your energy faster when you touch the balls, and also added some extra beachballs to dodge. The chapter concludes with tips on changing the difficulty. This is actually a modified version of the game from Scratch Programming in Easy Steps. The top-left corner shows your energy remaining: the cat gets smaller as your energy fades. In this game, you (the Scratch cat) have to dodge the beachballs and collect the ice creams. It works on both the Raspberry Pi (Scratch 1.4) and the new Scratch 2.0, but it runs much faster under Scratch 2.0. This game is the last big project in Scratch Programming in Easy Steps. Use the cursor keys to move and the spacebar to fire at the aliens who approach you from the right. ![]() Space Swarm is a classic alien shoot-em-up game. Follow that link to find videos, bonus materials and all the projects online to try in your browser! UPDATE: I have a new book now too, Cool Scratch Projects in Easy Steps. To learn how to make games and demos like these, and many more, read my book Scratch Programming in Easy Steps. To start each example game, click the green flag button. I put together this page of some of the games I've made in Scratch partly because I thought you might enjoy playing them, but also to provide an example of the kind of things you can achieve using Scratch. The programming language is widely used in schools and I've used it with adults to teach the first principles of programming. Programming in Scratch, you can easily create games and animations. Sean's Scratch 2.0 and Scratch 1.4 Example Games Arcade ![]()
0 Comments
Leave a Reply. |