Ms. M.S.
Borg
GAME DEVELOPMENT
USING SCRATCH 3.0 OFFLINE EDITOR
What is expected of you?
Ms. M.S. Borg
1. Prepare a storyboard of 6 slides in order to solve the problem
2. Complete the game by using appropriate sprites and coding
blocks as follows:
a. Set the background
b. Import the container sprite
and a healthy (apple) and
Ms. M.S. Borg
unhealthy (donut) sprite
c. Use appropriate blocks to enable
the container sprite to move left
and right using the arrow keys
d. Set the food sprites to
fall from random positions
and at random times
e. Make a sound when each
food touches the container
Ms. M.S. Borg
f. Set a score counter to
increment when a healthy
food is collected and
decrement when an g. Repeat this process for
unhealthy food is collected 30 falling food items
3. Test the program and make
necessary improvements
Ms. M.S. Borg
4. Prepare a brief documentation
containing the following screenshots:
a. The code blocks for each sprite
b. Two captioned screenshots from the game
5. Fill-in the Storyboard
Some important things to know!
Sprite means the avatar on the screen
Ms. M.S. Borg
The direction of the sprites is understood in terms of X axis and Y axis.
• The zero is in the middle.
• Going to the Left = -1, -2, -3, -4… on the X-Axis
• Going to the Right = 1, 2, 3, 4… on the X-Axis
• Going Down = -1, -2, -3, -4… on the Y-Axis
• Going Up = 1, 2, 3, 4… on the Y-Axis
Some important blocks to know!
Motion blocks enable
you to move sprites on
Ms. M.S. Borg
the x or y axis.
This Event block
is always the first
block of your
code!
A Sound block enables
you to play a sound at
any point in the game.
Sensor blocks are always inserted into other blocks.
They enable you to sense when a button is pressed
(e.g. keyboard/mouse) or when a sprite touches
another sprite.
Ms. M.S. Borg Operator blocks are always
inserted into other blocks. They
enable you to compare two
situations. Other blocks need to
be inserted in the empty spaces.
Control blocks that enable
looping. Other blocks can be
inserted in the empty spaces.
The Data section enables you
to create variables, such as
Score Counters.
Ms. M.S. Borg
Once a variable is created,
more options are available.
You can have more than one
variable.