View project at Scratch
|
Random Star
ASSIGNMENT:
Run the demo project several times. Sometimes it makes something that looks
very similar to a star and sometimes it's pretty far off. Next, inspect the
code carefully. Take a close look at how the random block works and how it
is used in this project. Figuring out how the random block works is critical
to being able to successfully complete this assignment.
Your job is to alter the demo project in the following ways:
- Make three buttons and label them TRIANGLE, SQUARE, and DIAMOND. Place
these buttons along the bottom of the project area.
- Make an additional button which clears the project area. Place it at the
top of the project area.
- When the three SHAPE buttons are pressed the corresponding shape will be
drawn above which ever button was pressed. The buttons will not erase the
shapes drawn by the other buttons.
- Use the same technique used in the demo project to produce the triangle,
square, and diamond.
|