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

Comments for BreakOut

Return to BreakOut

trash1000trash1000

2012/5/22

@badboy I will look into difficulties. As for the level editor, we will see :D
badboy201199badboy201199

2012/5/22

yay responce :)
A new version of this scenario was uploaded on Wed May 23 09:15:24 UTC 2012 Added sound effects and different difficulties.
A new version of this scenario was uploaded on Wed May 23 10:08:31 UTC 2012 Fixed a little bug adding the score board.
badboy201199badboy201199

2012/5/23

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
badboy201199badboy201199

2012/5/23

another idea add a way to pause it
trash1000trash1000

2012/5/23

There already is. Just try and press return while playing.
badboy201199badboy201199

2012/5/23

omg never noticed that i feel like a fool :P
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.
danpostdanpost

2012/6/17

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.
luxlux

2012/6/17

now someone try to beat that score :)
hotrailshotrails

2012/6/18

Cool game!
trash1000trash1000

2012/6/18

@danpost Thanks for your suggestion. I will look into fixing that bug as soon as I can. @lux Nice score. @hotrails Thanks!
trash1000trash1000

2012/6/18

@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.
HermanHerman

2012/6/19

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 ;)
trash1000trash1000

2012/6/19

Yeah that's another problem (and is probably the way lux got his 400k score). I will look into fixing it.
luxlux

2012/8/14

yes ... sorry for taking advantage of that ^^ Is it possible to remove my score to make it fair again?
danpostdanpost

2012/8/15

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.
trash1000trash1000

2012/8/15

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
erdelferdelf

2012/8/15

Why not make the option to delete a score like in cuberunner? rightclick on the scoreboard, deletes the score
danpostdanpost

2012/8/15

@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.
danpostdanpost

2012/8/15

Easier, would be just to zero the score if 'getScore' returns any number greater than 400,000 for the current user.
A new version of this scenario was uploaded on Wed Aug 15 11:03:30 UTC 2012 You can delete your own score by right clicking the scoreboard.
trash1000trash1000

2012/8/15

@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.
erdelferdelf

2012/8/15

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.
luxlux

2012/8/15

I think it worked! At least I dont see my score anymore ...
trash1000trash1000

2012/8/15

Yup, it worked. However, a certain erdelf somehow got a 900000 score xD
danpostdanpost

2012/8/15

I found a glitch with the ball hugging the right edge.
danpostdanpost

2012/8/16

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.
danpostdanpost

2012/8/16

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.
trash1000trash1000

2012/8/16

@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.
CockyCocky

2012/8/29

echt sau cool und gut codiert
CockyCocky

2012/9/12

aber wie kriegt man diese gute phusik hin?
trash1000trash1000

2012/9/12

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.
CockyCocky

2012/9/19

ja aber ich kann diesen Code nicht schreiben
trash1000trash1000

2012/9/19

Dann kopiere ihn dir aus der Klasse heraus? Ich kann (bzw. will) dir nicht deine Szenarien programmieren.
CockyCocky

2012/9/19

ich weiß.
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.