18
Lesson 1 What is coding? How do I make my character move using code?

Lesson 1: Scratch Computer Programming

Embed Size (px)

Citation preview

Page 1: Lesson 1: Scratch Computer Programming

Lesson 1

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

move using code?

Page 2: Lesson 1: Scratch Computer Programming

What is computer programming/coding

??

Page 4: Lesson 1: Scratch Computer Programming

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

want the computer to follow in a certain order.

Page 5: Lesson 1: Scratch Computer Programming

Scratch• One program that allows us to make

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

programme.

Page 6: Lesson 1: Scratch Computer Programming

Professional Code

Page 7: Lesson 1: Scratch Computer Programming

Scratch Code

Uses blocks instead of

complicated numbers or

words

Page 8: Lesson 1: Scratch Computer Programming

See what Scratch is all about:

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

Page 9: Lesson 1: Scratch Computer Programming

Sprite

Page 10: Lesson 1: Scratch Computer Programming

Start the Programme/Stop the Programme

Page 11: Lesson 1: Scratch Computer Programming

Scripts/Blocks of Code

Page 12: Lesson 1: Scratch Computer Programming

Categories of Scripts/Blocks

Page 13: Lesson 1: Scratch Computer Programming

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

Page 14: Lesson 1: Scratch Computer Programming

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

Page 15: Lesson 1: Scratch Computer Programming

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

Page 16: Lesson 1: Scratch Computer Programming

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

Page 17: Lesson 1: Scratch Computer Programming

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

Page 18: Lesson 1: Scratch Computer Programming

Explore…• See if you and your partner can find

out how to do something new using ‘Scratch’

Extension: • Explain it to the class