You are on page 1of 6

Blockly Exercises –

Bird
Alizza Clare Marie M. Tangliben
THWX1
Bird 6
I made the if statement
“does not have worm”
with the command to go
to the direction of the
worm. And when it
already has the worm, I
added an else if with a y-
coordinate basis so I can
control the direction of
the bird to the nest.
Bird 7
I needed the first
condition to be the y
corrdinate to make it go
down. Also, if I don’t do
that and I replace it with
the “does not have worm”
, the bird kind of glitches
as it goes to the worm
because of the
cintradicting statements.
And because the first 2
conditions are already
true, I can make it go ti
the nest using the x block
and the direction.
Bird 8
I used the AND logic gate
to differentiate the “1st
quadrant” from the “4th
quadrant” by using a
combination of the
statement “does not have
bird” and the coordinates
because its hard to get to
the nest without using
these conditions.
Bird 9
To keep the bird from
glitching, I had to make a
condition where the
coordinates of the worm
and the bird were
differentiated because
they were at about the
same height as each
other. So I made use of
the statement “does not
have worm” to make the
bird fly smoothly to the
worm and then fly back
up and then down to the
nest
Bird 10
I applied the same logic to
this level as I did to the
other levels. I had some
difficulty fixing the
“glitching” part as the
coordinates overlapped so
I know I had to fix that by
making the proper AND
statements primarily
making use if the “does
not have worm”

You might also like