Introduction to Alice
Do the Alice Tutorial1
Make sure you understand and can find the five major sections of the Alice screen: world window object tree details area editor area events area
Program:Jumping Bunny - Create a new world that will involve a rabbit.
- Create a new method for the bunny that will cause the bunny to jump.
- Add the event to the program so the the bunny will jump when you click on the bunny.
- Create a variable in the bunny’s property tab to keep track of the number of times the bunny jumps.
- Using the “Do together” and “Do in order” programming structures, have the bunny move parts of itself as it jumps. When the bunny lands it needs to be in the same position as when it started.
In your own words write a description of each of the following new concepts and terms: world (a.k.a. global) object tree properties variables changing values of variables method event Programming Structures: “Do Together” and “Do in order”
New Concepts: Parameters Variables while loop function: distance to
Create the following bunny methods: - hop
- call hopUp
- call hopdown
- hopOnTo (object: target)
- Call hopUp
- add code to moveto(target)
Add a skateboard object to the world.
Create the following world methods: - bunnyGoToSkateboard
- This method will cause the bunny to go to the skateboard no matter where the bunny is. It will need to use a while loop, a variable – howFar, along with the bunny function distanceTo
- Once this is working, add an object parameter to this method so the bunny will goTo any objected passed to the method. i.e. convert the method to bunnyGoTo(object: target)
- Comment your code to tell a story
|