|
Create a project named Ouch! and Save it in your H: Drive .
This lesson is designed to introduce you to the concept of conditional
statements and the use of the primitive colorunder.
if colorunder = 15 [setsh 34 fd 10]
or
if colorunder = "red [setsh 7 bk 5]
The project must have:
- Button
- A black turtle
- 3 red triangles
- 3 blue circles
- 3 green shapes of various sizes
- 2 yellow lines or different lengths
- 1 black shape
- 1 orange shape
- 1 purple shape
The project must be able to:
- If the turtle touches a red shape it must change
direction to the right 27 degrees .
- If the turtle touches a blue shape an announce box
appears stating OUCH! and the turtle changes direction left 136 degrees.
- If the turtle touches a green
shape have it changes shape to a cow for 3 seconds jumps then forward 30 and
then return the shape to a black turtle.
- If the turtle touches a yellow
line have it setsize 80.
- If the turtle touches black have it set heading 0
What happens when the turtle's pen is down?
Primitives used:
if
[]
colorunder
announce
Extra Credit
Make your turtle turn red when it hits a red shape and blue
when it hits a blue shape. Make your turtle grow when it hit red and shrink when
it hit blue.
Helpful Link
Formatting
|