Lesson 1: Scratch Computer Programming

Preview:

Citation preview

Lesson 1

• What is coding?• How do I make my character

move using code?

What is computer programming/coding

??

Coding/programming is…• Writing a list of instructions that you

want the computer to follow in a certain order.

Scratch• One program that allows us to make

SIMPLE games/videos/stories/etc.• Gives us the tools to make our own

programme.

Professional Code

Scratch Code

Uses blocks instead of

complicated numbers or

words

See what Scratch is all about:

• https://scratch.mit.edu/about/

Sprite

Start the Programme/Stop the Programme

Scripts/Blocks of Code

Categories of Scripts/Blocks

You must start every code with a ‘When __ clicked’

Other blocks can be added to the ‘when clicked’ block by snapping them together like a jigsaw…

You try:• Open the programme• Show me the sprite with your mouse• Show me the ‘go’ sign with your mouse• Show me the ‘stop’ sign• Drag a block of script (instruction) from

the menu onto the blank canvas• Drag and drop it back into the middle

to delete it• Change the block category to ‘Looks’.• Drag a block onto the canvas• Make it disappear again• Change the block category to ‘Events’.• Choose the block and drag it to the canvas.• Delete the block again

Making a Sprite Move• https://scratch.mit.edu/help/videos/

Can you:• Show your partner:

– How to move forward 20 steps when you press the ‘go’ button

– Drag your cat back to where she started using your mouse

– Delete your ‘script’– Make your cat move forward 50 steps– Drag your cat back to where she started and delete

your script– Move your cat backwards 10 steps. – Delete your script– Move your cat backwards 20 steps

Explore…• See if you and your partner can find

out how to do something new using ‘Scratch’

Extension: • Explain it to the class

Recommended