This site requires JavaScript, please enable it in your browser!
Greenfoot back

danpost's Comments

Back to danpost's profile

@limefortheworld, ty for the review (and the vote).
danpostdanpost

2012/6/4

@seal308, I sure it is just a matter of changing the image of the one actor. @sushi, there is a glitch, in that sometimes when a new frog appears under the snake (possibly just at the head) that the snake will not be able to eat it. Happened to me at 600, but I am sure it was just random chance.
4.828 :+)
@Duta, I cannot be sure. It was too long ago. This was like my 3rd project in Greenfoot. I am not sure if I was using static variables at that point. However, I noticed I had said that it compiled different each time; which indicates that it was probably something else.
There is another, older, scenario (2010/12/8) called 'Blocks' that has the same concept. It is at: http://www.greenfoot.org/scenarios/2253
A lot of folks have been asking about how to detect collisions, or how not to pass through objects, so I created this example which also has an example of how one can sub-class my 'Bar' class to give it some functionality.
I remember something like this; except the rows were 3, 5, and 7 and the LOSER got the last match.
The ball also seems to penetrate the paddle a bit before bouncing.
I added a 'bigRefresh();' as the first statement in the scroll() method and it seemed to work OK.