Top Banner
How do I program a computer?
14
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lesson 1

How do I program a computer?

Page 2: Lesson 1

Three basic ideas

1. Variables

2. Branching

3. Looping

That’s all there is to it. We’ll explore using a program called Scratch.

Page 3: Lesson 1
Page 4: Lesson 1

Sprites

• Sprites are little pictures• We can animate them by changing the picture quickly• We can move, rotate, scale, hide, flip …..• This is how we create movement for our world.

Page 5: Lesson 1

This is sprite1, it comes already loaded in the SPRITE LIST and has already been placed on the STAGE

Task: Right Click and delete sprite1 from the SPRITE LIST

Page 6: Lesson 1

Task: Click on the insert new sprite button.

Page 7: Lesson 1

Task: Select the sprite called cat2 from the animals folder.

Page 8: Lesson 1

Task: Rename the sprite and call it cat. Remember to always call new sprites sensible names!

Page 9: Lesson 1

Task: From the control menu, drag and drop this rule into the SCRIPTS AREA

Page 10: Lesson 1

Task: From the control menu, drag and drop the forever rule into the SCRIPTS AREA and join it together.

Compatible rules can be joined together in the SCRIPTS AREA

Page 11: Lesson 1

Task: From the motion menu, drag and drop the point towards rule into the SCRIPTS AREA and join it inside the forever rule

Task: choose mouse pointer from the drop down list.

Page 12: Lesson 1

Task: change number of steps to 3.

Task: From the motion menu, drag and drop the move 10 steps rule into the SCRIPTS AREA and join it underneath the point towards rule.

Page 13: Lesson 1

Task: run your program by pressing the green flag.

Page 14: Lesson 1

Notice how the co-ordinates change as you move the mouse and sprite.