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

danpost's Comments

Back to danpost's profile

Also, adding some type of scoring would probably be a good idea.
You could also implement a way to allow the user to turn off (and on; or hide/show) the point.
You could also add constructors to 'stopper' and 'generator' to 'setImage(new GreenfootImage(1, 1));', so you will not see the green heel(s) at the top of the screen.
This is my first attempt at using the UserInfo class. Please, do not hesitate to present any issues, make any comments or suggestions, or ask any questions. Oh ... and Happy Independence Day to all !!
A score of 258 on the first level means you clicked 14 times to fill the grid. By clicking strategically (choosing the right segments to click on, which can require some guesswork), you can fill the grid with less clicking; thereby, improving your score for that level. Level one can easily be filled with an average of 5 to 8 fairly well placed clicks. I will add some strategy suggestions to the description.
The strings need to be in double quotes. Try 1st string: "Bar 1" 2nd string: "points" 1st int: 0 2nd int: 50
The constructor for the bar takes two Strings and two ints. - 1st string: name of bar (your choice; mine says Player 1) - 2nd string: unit of measure for what the bar is used (mine says Health Points) - 1st int: the initial value of the bar (mine starts at 25) - 2nd int: the maximum value of the bar (initially set at 100) I will check how well documented it is, and if not satisfactory, will update it.
That button was programatically disabled for that menu. There are methods in the Menu class that will 'activate' and 'deactivate' specified buttons within it. That was just an example of deactivating a menu button.
@sp33dy, I believe that is due to the difference between the actual size of the image and the size of the ball itself within the image. @2Karl, since the balls are round, maybe you should use 'getObjectsInRange' for collision checking, instead of using one of the 'intersecting' methods.