Download - Lesson 1
![Page 1: Lesson 1](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/1.jpg)
How do I program a computer?
![Page 2: Lesson 1](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/2.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/3.jpg)
![Page 4: Lesson 1](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/4.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/5.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/6.jpg)
Task: Click on the insert new sprite button.
![Page 7: Lesson 1](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/7.jpg)
Task: Select the sprite called cat2 from the animals folder.
![Page 8: Lesson 1](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/8.jpg)
Task: Rename the sprite and call it cat. Remember to always call new sprites sensible names!
![Page 9: Lesson 1](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/9.jpg)
Task: From the control menu, drag and drop this rule into the SCRIPTS AREA
![Page 10: Lesson 1](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/10.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/11.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/12.jpg)
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](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/13.jpg)
Task: run your program by pressing the green flag.
![Page 14: Lesson 1](https://reader035.vdocuments.us/reader035/viewer/2022070302/546facffaf7959555d8b4844/html5/thumbnails/14.jpg)
Notice how the co-ordinates change as you move the mouse and sprite.