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 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.
Since each keypress is to produce one letter, you really should use the 'getKey' method instead of the 'isKeyDown' method, which can cause more than one character to be added to the string on a keypress.
Just to clarify: switch a bulb on or off by clicking on it, and all the bulbs next to it, horizontally and/or vertically, switch states (from on to off, or from off to on, depending on their starting state). It is part of the all-ones collection of games, so, yes, the object is to turn them all on.
Encountered a situation in the level with the row of invinsible bricks. If no breakable bricks remain in the general area above the unbreakables, the ball can bounce back and forth repeatedly in the same pattern and will not ever return to the bottom half of the screen. A random, but infrequent, small turn could fix this.
2012/7/4
Total Infestation
2012/7/2
Total Infestation
2012/6/27
Progress bar/Health bar class
2012/6/27
Progress bar/Health bar class
2012/6/25
Menu Demo
2012/6/25
Bouncing Balls
2012/6/24
password protect
2012/6/19
Light, Unlimited 點燈遊戲 無限版
2012/6/17
BreakOut