
Y4 Unit 10: Be a Game Developer
Presentation
•
Computers
•
4th Grade
•
Practice Problem
•
Easy
Ms Valerie
Used 8+ times
FREE Resource
33 Slides • 14 Questions
1
Enter the code shown
Use your REAL SHORT NAME
Go to toilet / drink water while waiting for others
Join my Quizizz
In 5 minutes :
2
3
Unit 10: Be a
Game Developer
In this unit, you use sub-routines and repetition to create algorithms and computer games in Scratch. You will learn:
about algorithms
to develop algorithms with repetition
to test different parts of a program.
4
Warm Up
Question
5
Open Ended
The rat must take a certain path to get to the cheese. There is a pattern to the path. What is the pattern?
Complete the first two steps that the rat should take to get to the cheese.
Answer :
a) STEP 1 : Move ?
b) STEP 2 : Move ?
6
Answer
Step 1 : Move one block down
Step 2 : Move two blocks left
7
Open Ended
The rat must take a certain path to get to the cheese. There is a pattern to the path.
How many times must these steps be repeated so that the rat gets to the cheese?
8
Answer
four (4) times in total
9
Understanding
sub-routines
10
Sub-routines
subset of code within a program
contains instructions that are used more than once in the program
11
Open Ended
What is a sub-routine? Use your own words to explain.
12
In computer game
certain actions that a player repeats throughout the game
each action uses a sub-routine
13
Open Ended
What are certain actions in the games that you ever played that seemed to repeat the same thing over and over again? Share your answer below.
14
Dot sprite in Chasing Game
move up when the up arrow is pressed
move down when the down arrow is pressed
move to the left when the left arrow is pressed
move to the right when the right arrow is pressed
15
Open Ended
Table 1 to Table 4 show the instructions when each arrow key is pressed. What do you see in the third step in Tables 1 to 4?
16
Dot sprite in Chasing Game
Table 5 shows the steps of the Move Around sub-routine.
The first step in Table 5 is to define that this is a sub-routine.
Writing this sub-routine means we do not have to add separate instructions to Tables 1 to 4.
17
Open Ended
What is the name of the sub-routine in this program?
18
Open Ended
What is the name of the sub-routine in this program?
19
Using
repetition
20
Recap
Question
21
Multiple Select
There are two types of loops. Choose the correct answer/s.
Indefinite (forever) loops
Selection loops
Definite (repeat) loops
Control loops
22
Indefinite (forever) loops
23
Indefinite (forever) loops
instructions repeat without stopping
repetition
24
Definite (repeat)
loops
25
Definite (repeat)
loops
instructions repeat a number of times before stopping
iteration
26
Types of
definite (repeat) loops
condition-controlled loops
count-controlled loops
27
Multiple Select
Two types of definite (repeat) loops. What are they?
forever loops
condition-controlled loops
count-controlled loops
repetition loops
28
Writing an algorithm to perform actions using Repeat
29
Look at the algorithm below for the second character, Robot, in the Chasing Game. In this algorithm, the Robot character should perform the following actions once:
30
Open Ended
What would be in STEP 6 if we want the program to repeat in total of 8 times from STEP 3 to STEP 5? Write the sentence for STEP 6 below.
Template Answer : Repeat Step 3 to Step 5 (?) more times
31
Answer:
32
When you write the algorithm for repeat (certain times),
it should be minus 1 (-1)
If we want the program to repeat 8 times from STEP 3 to STEP 5
Answer : Repeat Step 3 to Step 5 seven more times
33
Open Ended
What would be in STEP 6 if we want the program to repeat in total of 7 times from STEP 3 to STEP 5? Write the sentence for STEP 6 below.
Template Answer : Repeat Step 3 to Step 5 (?) more times
34
Answer:
35
Value in the
Repeat Loop
36
What will be the value in the repeat loop?
37
When you write the value for the loop,
you should plus 1 (+1) as it run through one sequence from Step 3 to Step 5.
38
Multiple Choice
What will be the value in the REPEAT loop?
8
7
9
6
39
Multiple Choice
What will be the value in the repeat loop?
10
9
8
7
40
Multiple Choice
What will be the value in the repeat loop?
7
5
3
4
41
42
Do individually / group (10 minutes)
Teacher will reveal answer/discuss the answer
43
44
Dot sprite in Chasing Game
Create this program in Scratch.
Sub-routine
My Blocks > Make a Block > Name the block > Ok
45
46
47
Go to "My Blocks" and make a new block
Give your sub-routine a name and press OK
Name should describe the purpose of the sub-routine
Draw Triangle
Ask Number
Below the "define" block, add or complete the code you want to run when the block is called or executed
Call or use the block in your program
How to make a sub-routine
Enter the code shown
Use your REAL SHORT NAME
Go to toilet / drink water while waiting for others
Join my Quizizz
In 5 minutes :
Show answer
Auto Play
Slide 1 / 47
SLIDE
Similar Resources on Wayground
42 questions
4.8 Customary Length
Presentation
•
4th Grade
37 questions
Class 4 Memory and Storage
Presentation
•
4th Grade
40 questions
VS.3 Native Americans of Virginia
Presentation
•
4th Grade
41 questions
South Africa
Presentation
•
3rd - 4th Grade
43 questions
LESSON: 4-6 FUN WITH SCIENCE - IN THE LAB
Presentation
•
4th Grade
43 questions
Year 5 - Root Words, Prefixes, Suffixes
Presentation
•
4th Grade
43 questions
Geography Map Skills
Presentation
•
4th Grade
42 questions
Science - Grade 4 - Semester 1
Presentation
•
4th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
20 questions
Inferences
Quiz
•
4th Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
20 questions
Classifying Quadrilaterals
Quiz
•
3rd - 4th Grade
10 questions
Candy
Quiz
•
4th - 8th Grade
18 questions
Brain Teasers
Quiz
•
4th Grade
30 questions
Multiplication Facts 1-12
Quiz
•
2nd - 5th Grade
14 questions
Context Clues
Quiz
•
4th - 6th Grade
20 questions
Cartoon Characters!
Quiz
•
KG - 5th Grade