I have questions
- Every time I compile, the CRAB DISAPPEARS
- and that ANNOYS ME VERY MUCH
- when I typed
- if ( atWorldEdge()), when the crab goes near to the edge of the world, it rotated by itself.
- move has no parameters
- turn expects one parameter of type int (a whole number) for the angle
- boolean is a type that can hold two possible values: true or false
observing the crab when clicked the Run button
I see nothing since the crab is doing nothing because there is no source code
Exercise 2.2
Make the crab move
Yes! it took me 10 minutes to figure this out because the stupid yellow highlight kept on highlighting. The problem was } thing. I put it on the wrong place AGRR
Exercise 2.3
adding multiple crabs
It was funny to see how all the crabs going across the world and ending at the same place.
- This move() is called a method call. A method call is an action that an object knows how to do. The parentheses are part of the method call and ends with a semicolon.
Exercise 2.4
Try turn and observe
yeah I made the crab turn it was easy to do
Exercise 2.5
make the crab turn left
- The parameter is a instruction telling how many degrees the crab should turn
That's what I did for the whole class so far.
I think I got really far... compared to other classes I had because I was concentrated
and was actually excited to do the Green foot.
I talked with Mr. Daley and he told me that my blog is good :)
which I was SO excited with ;D
No comments:
Post a Comment