Today's classwork goes along with Chapter 4, Section 2. You will be writing methods with parameters and calling those methods with different arguments. In both cases think about what is the same and what needs to be in the method. Try to duplicate as little code as possible.
The following work needs to be checked off when you have completed it.
This method should have FOUR parameters:
Create a pond with three frogs from the animals folder. Change the color of two of the frogs so that the frogs are all different colors. All the frogs should be sitting on the edge of the pond in different parts but all between the camera and the water. Have a hungry snake enter the scene from where the camera is. The pond can be the Oasis in the Environments folder or a shape from the Shapes folder (you can change the color to blue).
When you drop in the frogs, they may be hard to find. Resize them and/or make them move up to find them. Then place them in front of the pond in different positions (one to the far left, one in the center and one to the far right).
Write a method that has the snake turn toward a frog, and move towards it, the frog jumps into the pond and the snake slithers back to where it was. You want the snake in the correct position to try again to get another frog.
Your new method should have at least two parameters. Which frog to jump should be one of the parameters. You should decide on another parameter.
In world.myFirstMethod your new method should be called three times, once for each frog.
Be sure to include comments with your names and the date in your world.myFirstMethod.
If you finish early, feel free to embelish your animations.