Search Header Logo
Y4 Unit 10: Be a Game Developer

Y4 Unit 10: Be a Game Developer

Assessment

Presentation

Computers

4th Grade

Practice Problem

Easy

Created by

Ms Valerie

Used 8+ times

FREE Resource

33 Slides • 14 Questions

1

  • joinmyquiz.com

  • Enter the code shown

  • Use your REAL SHORT NAME

  • Go to toilet / drink water while waiting for others

Join my Quizizz

In 5 minutes :

media

2

media

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.

media

4

Warm Up
Question

media

5

Open Ended

Question image

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

Question image

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

media

10

Sub-routines

  • subset of code within a program

  • contains instructions that are used more than once in the program

11

Open Ended

Question image

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

Question image

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

media
media
media
media
media
  • 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

media

15

Open Ended

Question image

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

media
media
media
media
media
  • 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

Question image

What is the name of the sub-routine in this program?

18

Open Ended

Question image

What is the name of the sub-routine in this program?

19

Using
repetition

media

20

Recap
Question

media

21

Multiple Select

Question image

There are two types of loops. Choose the correct answer/s.

1

Indefinite (forever) loops

2

Selection loops

3

Definite (repeat) loops

4

Control loops

22

Indefinite (forever) loops

media

23

Indefinite (forever) loops

  • ​instructions repeat without stopping

  • repetition

24

Definite (repeat)
loops

media

25

Definite (repeat)
loops

media
  • ​instructions repeat a number of times before stopping

  • iteration

26

Types of
definite (repeat) loops

media
  • condition-controlled loops

  • count-controlled loops

27

Multiple Select

Question image

Two types of definite (repeat) loops. What are they?

1

forever loops

2

condition-controlled loops

3

count-controlled loops

4

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:

media
media

30

Open Ended

Question image

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

media

​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

Question image

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:

media

35

Value in the
Repeat Loop

36

​What will be the value in the repeat loop?

media
media

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.

media
media

38

Multiple Choice

Question image

What will be the value in the REPEAT loop?

1

8

2

7

3

9

4

6

39

Multiple Choice

Question image

What will be the value in the repeat loop?

1

10

2

9

3

8

4

7

40

Multiple Choice

Question image

What will be the value in the repeat loop?

1

7

2

5

3

3

4

4

41

media

42

media
media
  • ​Do individually / group (10 minutes)

  • Teacher will reveal answer/discuss the answer

43

media

44

Dot sprite in Chasing Game

media
media
media
media
media
  • Create this program in Scratch.

  • Sub-routine

    • My Blocks > Make a Block > Name the block > Ok

media

45

media

46

media

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

  • joinmyquiz.com

  • Enter the code shown

  • Use your REAL SHORT NAME

  • Go to toilet / drink water while waiting for others

Join my Quizizz

In 5 minutes :

media

Show answer

Auto Play

Slide 1 / 47

SLIDE