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

Comments for Greenfoot Breakout

Return to Greenfoot Breakout

mjrb4mjrb4

2008/7/16

At the moment: 5 levels in total, each level has more blocks, there's a score, a few powerups and a few different kinds of blocks. It also uses the explosion class that's available on the greenfoot website as one of the support classes (I just had to fit it in somewhere! Have a look at http://greenfoot.org/programming/classes.html if you want to use it) but you'll need to delete the following code in it for it to work: if(imageNo <= -30) { ((Space) getWorld()).gameOver(); } I presume this piece of code was specifically tailored to a different scenario. <br><br> As for extra images I've used, they're all standard ones with greenfoot, apart from the coloured blocks. The red one is there already, but I used photoshop to make the rest from the original, so feel free to nick the other coloured blocks if you're after some variety. (Oh, and the powerups. Forgot about them, they're photoshopped from scratch as well.) I've had a quick check and everything seems to work as it should, but it's gone midnight and I'm therefore not the most alert, so there's always the chance I've made an embarassing mistake... Hopefully not though! Source code is included, I've tried to comment things and keep it pretty clean.
davmacdavmac

2008/7/17

I did manage to get to the end of level 2 with 2 balls bouncing around, and it didn't go on to the next level - bug?
mjrb4mjrb4

2008/7/17

It's not a bug, it's a feature! ... I actually mean that this time :) It won't advance to the next level until all balls are below a certain point in the world, otherwise the blocks will appear when the balls are in the midst of them and all the blocks will disappear very quickly and without the player really doing anything! So if two balls are bouncing around, then the chances of them both being below that certain point is quite low... You have to let one of them go. There's probably a better way to do it, but I couldn't think of it...
A new version of this scenario was uploaded on Thu Jul 17 17:38:07 UTC 2008
delmardelmar

2008/7/18

That's getting playable! I think the blocks should change colour. Currently, you've got to hit blue blocks three times, green ones two, red ones once. I think the blue should turn to green when you hit it once, and then to red, so that you always see how much more often you need to hit it. Also, having different layouts of blocks in different levels would be nice (not always straight rows). Maybe a diamond shape, so that you could try to squeeze the ball through the sides to get it to hit from the top...
A new version of this scenario was uploaded on Fri Jul 18 23:10:56 UTC 2008
mjrb4mjrb4

2008/7/18

Good ideas! I was always going to get round to rewriting the levels properly so they weren't just random, but I did it that way initially because I was lazy. I'll sort that out some time in the near future because it'll take a while. I've implemented the bricks changing colour though, and all the images are statically in the block class to make things a bit neater too :)
A new version of this scenario was uploaded on Sun Jul 20 12:43:52 UTC 2008
A new version of this scenario was uploaded on Sun Jul 20 12:45:54 UTC 2008
mjrb4mjrb4

2008/7/20

The levels are now there and no longer just random - 5 of them in total. The score and lives text has also been changed to look a bit nicer.
A new version of this scenario was uploaded on Sun Jul 20 13:01:11 UTC 2008
spacebluespaceblue

2009/3/30

mrjb4, i extended your scenario to create my own. Its tagged under "breakout", if you want to look at it.
MathManiacMathManiac

2010/5/23

3987
CockyCocky

2012/9/14

ich habe ein Problem mit dem übersetzen.
CockyCocky

2012/9/14

ich habe ein Problem mit dem übersetzen.
MathManiacMathManiac

2012/9/15

Mit Was?