Adding Randomness to Pacman Game in Scratch

Adding Randomness to Pacman Game in Scratch

Assessment

Interactive Video

Other, Social Studies

KG - University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial guides viewers through adding a ghost to a Pacman game, focusing on making the ghost move randomly within a maze. It covers setting the ghost's starting position, creating variables for direction and distance, and ensuring the ghost changes direction upon hitting walls. The tutorial emphasizes unpredictability in the ghost's movement and introduces programming concepts like subroutines to streamline code.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary goal when adding a ghost to the Pacman game?

To make the ghost move faster than Pacman

To ensure the ghost moves randomly and unpredictably

To have the ghost start at a random position

To make the ghost follow a fixed path

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you ensure the ghost starts in the same position every game?

By using a timer to reset the position

By setting fixed coordinates for the ghost's starting position

By allowing the player to choose the starting position

By using a random number generator

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of creating a variable for the ghost's direction?

To determine the ghost's color

To store a random number representing the ghost's direction

To keep track of the ghost's score

To store the ghost's speed

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it beneficial to use a subroutine for changing the ghost's direction?

It reduces the game's memory usage

It allows the ghost to change color

It increases the ghost's speed

It makes the code more readable and reusable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of setting a random distance for the ghost's movement?

To make the ghost move in a straight line

To make the ghost follow Pacman

To ensure the ghost's movement is unpredictable

To slow down the ghost

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you prevent the ghost from moving through walls?

By increasing the ghost's speed

By using collision detection with the maze's color

By setting a fixed path for the ghost

By reducing the ghost's size

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the ghost hits a wall during its movement?

It speeds up

It changes direction

It moves through the wall

It stops moving

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?