yay the difficulties brilliant theres a little bug where if you sorta squash the ball into the wall it go's really weird up and down but still brilliant
A new version of this scenario was uploaded on Thu May 24 08:09:55 UTC 2012
Added a level editor - you can now create personal levels.
Though you cannot save your levels yet.
A new version of this scenario was uploaded on Fri May 25 08:10:53 UTC 2012
You can now save the levels you created in the level editor when you are logged in to greenfoot.org.
Note: Saving will automatically overwrite whatever level you saved previously.
A new version of this scenario was uploaded on Sat May 26 20:07:48 UTC 2012
Heavily worked on the code. Only viewable changes are the ones to the menu.
A new version of this scenario was uploaded on Sun May 27 08:30:59 UTC 2012
New menu option - you can now go directly to any level you want.
Also 25 new levels.
A new version of this scenario was uploaded on Mon May 28 19:44:40 UTC 2012
25 new levels.
A new version of this scenario was uploaded on Tue May 29 10:11:39 UTC 2012
Updated the level editor to be easier to use.
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.
@danpost Thanks for your suggestion. I will look into fixing that bug as soon as I can.
@lux Nice score.
@hotrails Thanks!
A new version of this scenario was uploaded on Tue Jun 19 10:34:45 UTC 2012
Should prevent the ball from getting stuck bouncing from undestroyable bricks.
A new version of this scenario was uploaded on Tue Jun 19 11:04:46 UTC 2012
Prevents the ball from smashing into a wall being stuck there.
Note for previous update: the ball may still bounce off from bricks in the same way over and over again. After a time it will change it's movement just a little bit to come out of that situation.
And then it happened: the ball bounced back and forth repeatedly in the same pattern between a wall and a side of the paddle. At 50.000 I decided to write this instead of going to see a score go overboard ;)
It is possible to clear it, but it would take 2 updates to complete the process; plus it would take lux to play it between the updates. The first would be to add 'if (score > myInfo.getScore() [b]|| "lux".equals.myInfo.getUserName()[/b])' so when lux plays it, that score, no matter what it is, will be saved in the UserInfo data. And the second, to remove what was added; so a worse score by lux will not be saved.
Well, I don't think it needs to be that complicated, danpost. Since you can easily get a list of the top players from your scenario by using UserInfo.getTop(0); - the first element in this list will be lux' info. You can then easily set the score back to zero.
A new version of this scenario was uploaded on Wed Aug 15 08:58:51 UTC 2012
No features, just a method to delete the top player's score.
A new version of this scenario was uploaded on Wed Aug 15 09:09:42 UTC 2012
@trash1000, First, the UserInfo data can only be changed if you are logged in as that user. Second, if the scenario is programmed to save the score if, and only if, the new score is larger than the previous high score, then it needs to be adjusted somehow to allow a smaller value to be saved. If this is made a permanent option as 'erdelf' suggested, then only one update is neccessary. If this route is taken, I would also suggest a verification of deletion somehow.
@danpost Thanks for your explanation, I didn't know it's impossible to change the score of other users without being logged in to their accounts.
I decided to implement the "right click to delete score with verification" method @erdelf suggested. This way it's not limited to lux and people can score more than 400000 points.
nice way to delete the score, btw. it asks even when I click left
A new version of this scenario was uploaded on Wed Aug 15 15:29:49 UTC 2012
Fixed a (minor) bug being able to delete the score when clicking left on the scoreboard.
To avoid this kind of glitch, you should check the direction as well as location, like in the following:
private void checkWalls()
{
if( (deltaX < 0 && getX() < getImage().getWidth()/2) ||
(deltaX > 0 && getX() >= getWorld().getWidth()-140-getImage().getWidth()/2) )
{
Greenfoot.playSound("sounds/cling_1.wav");
deltaX = -deltaX;
}
if(deltaY < 0 && getY() <= getImage().getHeight()/2)
{
Greenfoot.playSound("sounds/cling_1.wav");
deltaY = -deltaY;
}
}
Also, the last few lines in your act method can be removed.
There is also a problem that arrises when the ball bounces back and forth between to non-removable bricks. A small random change in direction would fix that.
A new version of this scenario was uploaded on Thu Aug 16 08:27:05 UTC 2012
Fixes a bug causing the ball to "hug" the wall (thanks to danpost).
Fixes another bug causing the paddle to stay stucked when collecting an enlarge bonus close to the world edges.
@danpost Thank you, I used that method and didn't get problems with the ball anymore! For your second problem, I already had that random change in direction built into the game. I made it a little bit less infrequent now, so it should not take so long until the ball comes out of a hopeless situation.
Schau doch in den Quelltext (Klasse Ball). Die Physik dahinter ist nun wirklich nichts großartiges - Einfallswinkel gleich Ausfallswinkel. Das ist keine große Berechnung.
A new version of this scenario was uploaded on Wed Sep 19 09:53:10 UTC 2012
You can now mute the sounds by pressing m.
A new version of this scenario was uploaded on Tue Oct 01 09:11:57 UTC 2013
First update in a long time.
After losing all your lives you'll get a password. In the menu screen (under "Go To") you can enter this password to resume the game at this level.
2012/5/22
2012/5/22
2012/5/23
2012/5/23
2012/5/23
2012/5/23
2012/6/17
2012/6/17
2012/6/18
2012/6/18
2012/6/18
2012/6/19
2012/6/19
2012/8/14
2012/8/15
2012/8/15
2012/8/15
2012/8/15
2012/8/15
2012/8/15
2012/8/15
2012/8/15
2012/8/15
2012/8/15
2012/8/16
2012/8/16
2012/8/16
2012/8/29
2012/9/12
2012/9/12
2012/9/19
2012/9/19
2012/9/19