Computer Coding Kit - Cloudinary

8 downloads 183 Views 10MB Size Report
May 14, 2016 - What is Scratch? Scratch is a computer programming language that's easy for beginners to use. In Scratch,
Get with the

PROGRAMMING Computer Coding Kit Kit includes: • Poster • Coding cards • Informative literature

SCRATCH

File ▾ Edit ▾ Tips About

?

• Saved s

username

Coding is a hoot!

A WORLD OF IDEAS: SEE ALL THERE IS TO KNOW

www.dk.com

When is Scratch Day?

MAY 14, 2016

What is Scratch? Developed by the Lifelong Kindergarten Group at the MIT Media Lab, Scratch is a free programming language and online community that enables young people to create and share their own stories, games, animations, and more!

scratch.mit.edu

What is Scratch Day? Scratch Day is a global network of events that celebrate Scratch—and the young people who code and create with it. During Scratch Day, kids and adults gather to share projects and learn from one another.

How can I participate? Visit the Scratch Day site to learn more about hosting a Scratch Day in your community or organization! To learn more about hosting, review tips and activity ideas for hosts, download logos and assets, and register a local event, visit:

day.scratch.mit.edu

A WORLD OF IDEAS: SEE ALL THERE IS TO KNOW

Additional Resources: Scratch scratch.mit.edu ScratchJr scratchjr.org ScratchEd scratched.gse.harvard.edu Scratch Foundation scratchfoundation.org

www.dk.com

Get with the

PROGRAMMING SCRATCH

File ▾ Edit ▾ Tips About

?

• Saved s

username

Coding is a hoot!

A WORLD OF IDEAS: SEE ALL THERE IS TO KNOW

www.dk.com

What Makes Up a Scratch Project?

What is Scratch?

A computer doesn’t have a smart brain like you, so everything you want it to do must be broken down into lists of simple instructions called programs. Giving instructions to the computer is known as programming, or coding.

Here’s a Scratch project. Think of it like a play. The action takes place in an area called the stage. The “actors” (the sprites) are controlled by lists of instructions (the scripts). Behind is the backdrop —the “scenery,” which can be changed.

by abcd (unshared)

Backdrop (background picture) A program is a list of instructions for the computer

What Does a Computer Understand? Instructions for computers have to be written following special rules and using only words the computer understands. These words and rules make up a “programming language.” There are lots of different programming languages. Many have funny names, such as JavaScript, C++, and Python.

Click the red button to stop a program

Add a script to make the shark sprite move

Sprites are used for all the objects we want to move or control when

What is Scratch?

This is the stage

clicked

Scripts for Sprites

forever

Scratch is a computer programming language that’s easy for beginners to use. In Scratch, programs are made by joining together colored blocks using the mouse. These groups of blocks (called scripts) tell characters on the screen (called sprites) what to do. Scratch is free, safe, and fun to experiment with.

This is an example of a script. It makes the shark sprite bounce around the stage, opening and closing its mouth. Each block gives an instruction to the sprite. A block might tell a sprite to move, change how it looks, talk in speech bubbles, react to other sprites, or make a sound.

next costume wait

0.25 secs

move 10 steps if on edge, bounce

The blocks fit together like jigsaw pieces

Scratch Projects With Scratch, you can make your own interactive stories, animations, games, music, and art. Scratch has large collections (or “libraries”) of cool graphics and fun sounds you can play around with. Let your imagination run wild—you’ll soon pick up the coding skills you need!

Click the green flag to run (start) a program

Shark patrol

We can make lots of sounds!

Show What You Know Fill in the spaces to practice the key language of Scratch.

Answers: 1. script, 2. sprites, 3. stage 4. running, 5. library

What You’ll Learn: • To do tasks, computers need simple instructions called programs • Scratch is a great place to start programming • What the ingredients of a Scratch project are

1. A ................................. is a set of instructions (program) in Scratch. 2. Objects that perform actions in a project are called ...................................... 3. In a Scratch program, the action takes place on the ...................................... 4. Starting a program is called ................................................. it. 5. A collection of sounds or graphics is called a ............................................

Scratch Glossary

animation Changing pictures quickly to make something appear to move on the screen. backdrop The picture behind the sprites on the stage.

LINGO

Why is it called Scratch? “Scratching” is a way of mixing different sounds to make new music. The Scratch programming language enables you to mix pictures, sounds, and scripts to make new computer programs. data Information—for example, numbers or words. debug To remove bugs; to find and fix the errors in a program.

operating system (OS) The program that controls everything on your computer, such as OS X or Windows. run To start a program.

event Something that happens on the computer, like a mouse click.

script A stack of instructions that are run in order.

input Data that goes into a program; for example, from the keyboard.

sprite A picture on the stage that a script can move and change.

library A collection of sprites, sounds, or costumes.

stage The area containing the sprites, where a Scratch project runs.

loop An instruction that makes other instructions repeat.

string The word used by programmers for data that contains words.

condition A “true or false?” question that is used to make a decision in a computer program.

program A list of instructions that tell a computer what to do.

costume The picture a sprite shows on the stage.

operator A block that works something out from data, such as adding two numbers together.

variable A place to store data in a program. A variable always has a name and a value.

backpack A way to copy things between Scratch projects. block An instruction in Scratch. Blocks can be joined together. bug A mistake in a program. It’s called a bug because insects got into the wiring of the first computers, causing errors.

GET WITH THE PROGRAMMING

JOIN OUR CODING EVENT time date location

Coding is a hoot!

A WORLD OF IDEAS: SEE ALL THERE IS TO KNOW

www.dk.com

PROGRAM

PROGRAM

MOVE TO A BEAT

COLOR CHANGE

Have your sprite dance to a drum beat.

Press a key and change the color of a sprite.

PROGRAM

PROGRAM

KEY MOVES

SAY SOMETHING

Use the arrow keys to move the sprite.

What do you want your sprite to say?

Coding is a hoot!

PROGRAM

PROGRAM

COLOR CHANGE

MOVE TO A BEAT

Press a key and change the color of a sprite.

Have your sprite dance to a drum beat.

Choose your sprite:

Choose your sprite:

New sprite:

New sprite:

Enter the code:

Choose a sprite from the library

Enter the code:

Choose a sprite from the library

when space ▾ key pressed

change color ▾

when

effect by 25

clicked

forever move 30 steps

GO!

play drum 1

Press space bar to change colors Tip:

change color ▾

You can choose a different effect

effect by 25

Type a different number

or

move -30 steps play drum 2

Then press the space bar again

for 0.25 beats

GO!

Click the green flag to run (start) a program

Learn more at www.dk.com and http://scratch.mit.edu

A WORLD OF IDEAS: SEE ALL THERE IS TO KNOW

for 0.25 beats

Learn more at www.dk.com and http://scratch.mit.edu

A WORLD OF IDEAS: SEE ALL THERE IS TO KNOW

PROGRAM

PROGRAM

SAY SOMETHING

KEY MOVES

What do you want your sprite to say?

Use the arrow keys to move the sprite.

Choose your sprite: Enter the code:

New sprite:

Enter the code:

Choose a sprite from the library

when this sprite clicked say Coding is a hoot! for 2

secs

Type in any words

GO!

GO!

Click on the sprite to start A WORLD OF IDEAS: SEE ALL THERE IS TO KNOW

Learn more at www.dk.com and http://scratch.mit.edu

when up arrow ▾ key pressed

when down arrow ▾ key pressed

point in direction 0▾

point in direction 180▾

move

move

10

steps

10

steps

when left arrow ▾ key pressed

when right arrow ▾ key pressed

point in direction -90▾

point in direction 90▾

move

move

10

steps

10

steps

Press the arrow keys to move A WORLD OF IDEAS: SEE ALL THERE IS TO KNOW

Learn more at www.dk.com and http://scratch.mit.edu

BUILD UP

STEAM 9781465439352

9781465444820

9781465426857

9781465443922

9781465419569

9781465451422

9781465444028

9781465428264

9780756686062

9781465438287

9781465440129

9780756682323

9781465414175

9781465451354

9781465452054 © 2016 The LEGO Group.

A WORLD OF IDEAS: SEE ALL THERE IS TO KNOW

www.dk.com

BUILD UP

STEAM

Quotes and Awards Coding Games in Scratch "Perfect." —GeekDad.com

Help Your Kids with Computer Coding A Family Choice Award Winner

Knowledge Encyclopedia “The wealth of knowledge that is supported here by images and creative layouts will encourage students to learn more about topics they study in school and cause them to gravitate toward new areas of interest.”

Space! An NSTA/CBC Outstanding Science Trade Book for Students K-12

DK Workbooks: Computer Coding "Five stars." —GeekDad.com

—School Library Journal

Picturepedia

How Machines Work: Zoo Break!

"Picturepedia beautifully illustrates subjects as diverse as the Earth's structure, feudal Japan and soccer."

"As robust and inviting a physical book as you can possibly get."

—Shelf Awareness

A WORLD OF IDEAS: SEE ALL THERE IS TO KNOW

—New York Times Book Review

STARRED reviews from Booklist, Kirkus Reviews, and Publishers Weekly

www.dk.com