|
Make a Maze |
A Microworlds Maze made "Easy as Pie"
1) Sit at a computer with Microworlds.
2) Hatch a turtle
3) In the command center, type fd space any number you want. What happens when the number is smaller? Larger? Is it too fast? Experiment with fd and wait commands.
4) Make a few fd space some number buttons. Maybe one or two with the forever option selected.
5) Make a stopall button.
6) Talk about degrees in a circle. Make four direction buttons:
seth 0
seth 270 seth 90
seth 180
7) Pick a background color, paintcan the entire background.
8) Draw a maze using a different color (not just a different shade) with the pencil or straightedge tool making sure the separating maze lines aren't too thin.
9) Try to make the turtle go through the maze using the fd buttons and the direction buttons.
10) Add the command bk 5 to the background color, making sure the command is acting on the turtle and not the mouse.
Yay!!!!!!!!!! You've made a maze!
How to Keep your turtle from going out of the lines in a maze
1. Make the lines thick.
2. Doubleclick the color in the paintbrush area.
3. in the instruction area type:
4. bk 5 or bk 10
5. select the each time button
Announcing Something (for example, "Way to go!" at the end of the maze)
Write a procedure called sayit:
to sayit
announce [whatever you want to announce]
end
Put a splotch of color at the end of the maze and assign the sayit procedure to that color.
To send your character back to the beginning
1. go to the place where your start is.
2. type “show pos” in the command center (you don’t need the quotation marks)
3. write down the position it gives you or remember it
4. pick a color for the place that will make the turtle return to start
5. double click on the color in the paintbrush area
6. in the instruction area, type:
7. setpos [the position that you got when you did show pos]
(you can use the above to send your turtle other places, too. just use show pos to find the right place)
To make something play your music
1. make your melody with the musical notes tool.
2. give it a name
3. decide what you want to click on to play the melody
4. click on it with the eye tool
5. in the instruction area, type in the name of your melody
6. click on your melody with the eye tool and uncheck the Visible box (at the bottom)
Asking a question
to procedurename
question [your question]
ifelse answer = “answer to your question
[announce [correct answer reply]]
[announce [wrong answer reply]]
end
Asking a Multiple Choice Question
to procedurename
question [your question? A: answer B: answer C: answer D: answer? (Answer A, B, C or D)]
ifelse answer = “thecorrectletter
[announce [correct answer reply]]
[announce [wrong answer reply]]
end
(you can also send your character back to the beginning instead of announcing)
To send your character back to the beginning if it answers a question wrong
to program
question [your question]
ifelse answer = “answer to your question
[announce [correct answer reply]]
[setpos [start position]]
end
(you can download this document at the bottom of this page)
| Attachment | Size |
|---|---|
| make-a-maze.pdf | 39.62 KB |










