INTRODUCTION TO PROGRAMMING WITH SCRATCH

JosephOdhiambo27 18 views 29 slides Sep 14, 2024
Slide 1
Slide 1 of 29
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29

About This Presentation

MY INTRO


Slide Content

Intro to Programming with Scratch - Preiented By: Joseph Odhiambo PAGE 1

Class Rules Please stay mute unless you are told not to. If you have a question, please use the raise hand function. There will be a rewarding system. I’ll keep track of each group’s points and the winning group will get a reward after each lesson. PAGE 2

Let’s introduce yourself to your new friends PAGE 3

What is programming?- Is writing instruction to a computer to complete a task. And where is it used PAGE 4

What is Scratch? PAGE 5 And what can you do with it ?

Stories: https://scratch.mit.edu/projects/2760970/ Games: https://scratch.mit.edu/projects/10128407/ Animations: https://scratch.mit.edu/projects/115688906/ PAGE 6

1 Intro to Scratch, Repeat Syllabus PAGE 7 https://scratch.mit.edu/ Drawing, Variables 2 Drawing, Variables 3

Structure of a Scratch Program PAGE 8 Layers:

How many layers are there PAGE 9

Structure of a Scratch Program PAGE 10 Layers: Character Background

Structure of a Scratch Program PAGE 11 Layers: Characters Costume Code Background Paint Code

Exercise: PAGE 12 Change the background Change the costume with a line of code

Repeat PAGE 13

How to make the kitten run? (Simulate human’s motion of running) PAGE 14

It might be hard to simulate this movement all at once. PAGE 15 Can we break this into small pieces? But…

2 Step Process: Move your left leg forward Move your right leg forward Repeat this process again and again PAGE 16

How to achieve this process through code? PAGE 17

2 Step Process: Costume 1 Costume 2 Repeat this process again and again PAGE 18

Let’s try it out PAGE 19

Naïve approach: PAGE 20 Does it work? Why?

Computer Programs are very fast PAGE 21 Fast enough that your eyes cannot capture

Second approach: PAGE 22 Does it work? Why?

Can only repeat a certain number of times Unable to control the exact stopping time PAGE 23

Third approach: PAGE 24 Which one is better?

How to improve even more? PAGE 25

Final approach: PAGE 26

Exercise: Can you make the bear walk? PAGE 27

Challenge: PAGE 28 Imagine that I’m shooting a basketball. Can you simulate the motion of the ball? It does not just fly in a straight line! It also rotates.

More Challenge: PAGE 29 Can you control the ball’s movement using arrow keys while keeping it rotating
Tags