20.03.2013 Views

Introduction to Computer Science with Scratch and App Inventor

Introduction to Computer Science with Scratch and App Inventor

Introduction to Computer Science with Scratch and App Inventor

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Now that we know about <strong>and</strong> <strong>and</strong> or blocks, we can update our win <strong>and</strong> lose conditions for our player.<br />

You can use <strong>and</strong> <strong>and</strong> or blocks throughout your program any time you want <strong>to</strong> check multiple conditions!<br />

You can also use the same blocks we have talked about <strong>to</strong>day <strong>to</strong> create more challenges for your games.<br />

For example, you can:<br />

Create multiple levels – advancing <strong>to</strong> a new level can be dependent on reaching a certain<br />

number of points, or any other condition<br />

Make your game more challenging as players accumulate more points, for example, I could<br />

make the duck move faster once the dinosaur has 5 points<br />

Be creative! There is no limit <strong>to</strong> the kinds of games you can create using <strong>Scratch</strong>!<br />

Adding Sound <strong>to</strong> Your Program<br />

You can also add sounds <strong>to</strong> your program. The sound blocks are bright purple.<br />

If you add sounds <strong>to</strong> your game, please be<br />

respectful of the other students in the lab <strong>and</strong><br />

keep the volume on your computer low!<br />

To play a sound, you must first add it <strong>to</strong> your<br />

sprite.<br />

There are two ways <strong>to</strong> add a sound <strong>to</strong> your<br />

sprite. You can either record a sound using a<br />

microphone, or you can import a sound. If you<br />

import a sound, you can use the built in sounds<br />

from the scratch library, or upload your own<br />

sound/music file.<br />

All of the options for sounds are on the sounds<br />

tab in the current sprite pane.<br />

mbrace Game Development Workbook Page 30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!