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

danpost's Comments

Back to danpost's profile

Much better. Thanks (+: DAN :+)
Please remove the 'Greenfoot.start()' statement from the world constructor. I was dead before I even started playing (just by the time it took to read the description). Also cannot reset, probably do to static variables in your code not being dealt with properly. Would also be nice if you would inform us as to what keys to use to control the car and shoot.
Please remove the 'Greenfoot.start()' statement from the world constructor. I was dead before I even started playing (just by the time it took to read the description). Also cannot reset, probably do to static variables in your code not being dealt with properly. Would also be nice if you would inform us as to what keys to use to control the car and shoot.
@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.